fix: 聊天记录bug;删除日志

This commit is contained in:
ikechan8370 2025-02-15 23:39:45 +08:00
parent 9930e53a03
commit c3eb8ac5db
4 changed files with 9 additions and 11 deletions

View file

@ -121,7 +121,9 @@ export class BingAIClient {
this.ws.once('message', (data) => {
clearTimeout(timeout) // 清除超时定时器
const message = JSON.parse(data)
logger.info(data)
if (this.debug) {
logger.info(data)
}
if (message.event === 'challenge') {
logger.warn('遇到turnstile验证码尝试使用2captcha解决')
// 如果收到 challenge处理挑战

View file

@ -250,7 +250,7 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
delete content.conversationId
})
if (this.debug) {
logger.info(JSON.stringify(body))
logger.debug(JSON.stringify(body))
}
let result = await newFetch(url, {
method: 'POST',