fix: 使用更清晰的报错信息

This commit is contained in:
ikechan8370 2023-03-28 16:35:28 +08:00
parent b4f37b5339
commit cae324f250
2 changed files with 1 additions and 4 deletions

View file

@ -492,7 +492,7 @@ export default class SydneyAIClient {
const firstTimeout = setTimeout(() => {
if (!replySoFar) {
this.cleanupWebSocketConnection(ws)
reject(new Error('Timed out waiting for first message.'))
reject(new Error('等待必应服务器响应超时。请尝试调整超时时间配置或减少设定量以避免此问题。'))
}
}, firstMessageTimeout)