diff --git a/utils/message.js b/utils/message.js index 412826f..911c0ca 100644 --- a/utils/message.js +++ b/utils/message.js @@ -91,7 +91,11 @@ export class OfficialChatGPTClient { } if (res.status !== 200) { let body = await res.text() - throw new Error(body) + if (body.indexOf('Conversation not found') > -1) { + throw new Error('对话不存在,请使用指令”#结束对话“结束当前对话后重新开始对话。') + } else { + throw new Error(body) + } } // todo accept as stream const decoder = new TextDecoder('utf-8')