mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: 再次优化Bing的错误信息for氷と火の歌
This commit is contained in:
parent
4f663c3902
commit
5646646261
2 changed files with 2 additions and 2 deletions
|
|
@ -791,7 +791,7 @@ export class chatgpt extends plugin {
|
||||||
errorMessage = ''
|
errorMessage = ''
|
||||||
break
|
break
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const message = error?.message || error?.data?.message || `与Bing通信时出错: ${JSON.parse(error)}`
|
const message = error?.message || error?.data?.message || '与Bing通信时出错.'
|
||||||
if (message !== 'Timed out waiting for first message.') {
|
if (message !== 'Timed out waiting for first message.') {
|
||||||
logger.error(error)
|
logger.error(error)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ export default class SydneyAIClient {
|
||||||
try {
|
try {
|
||||||
return JSON.parse(text)
|
return JSON.parse(text)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error('创建sydney对话失败')
|
logger.error('创建sydney对话失败: status code: ' + response.status + response.statusText)
|
||||||
console.error(text)
|
console.error(text)
|
||||||
throw new Error(text)
|
throw new Error(text)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue