feat: 对家列表的调整

This commit is contained in:
2025-07-28 21:34:23 +08:00
parent 15200ce3b8
commit 0efc7fe6a0
6 changed files with 108 additions and 27 deletions

View File

@@ -30,8 +30,19 @@ function agentChatStream(params, onChunk) {
resolve(res.data);
},
fail(err) {
console.log("====> ", JSON.stringify(err))
reject(err);
}
},
complete(res) {
if(res.statusCode === 500) {
console.log("====> ", JSON.stringify(res))
if (onChunk) {
onChunk({ error: true, message: '服务器错误', detail: res });
}
reject(res);
}
}
});
requestTask.onHeadersReceived(res => {