Merge branch 'ikechan8370:v2' into v2

This commit is contained in:
ycxom 2025-02-16 02:02:22 +08:00 committed by GitHub
commit 48518b49c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 27 additions and 23 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

@ -266,7 +266,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',