mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2026-10-26 01:54:48 +08:00
优化ai接口异常处理
This commit is contained in:
1 parent
770fd469c7
commit
04b08be60b
1 file changed
+1
@@ -325,6 +325,7 @@ async function chat(content, apiConfig, options = {}) {
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
processBar?.close();
|
||||
throw new Error(`HTTP error! status: ${response.status}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user