Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797

Daniel60d70d59de8c
diff --git a/app/src/layout/dock/AgentChat.ts b/app/src/layout/dock/AgentChat.ts
index 7aa532eefc..9e336ee367 100644
--- a/app/src/layout/dock/AgentChat.ts
+++ b/app/src/layout/dock/AgentChat.ts
@@ -660,12 +660,8 @@ export class AgentChat extends Model {
}
private async handleError(err: Error) {
- let message = err.message;
- if (err.name === "TypeError" && message.includes("fetch")) {
- message = window.siyuan.languages._kernel[28];
- }
this.flushTokenUpdate();
- this.appendError(message);
+ this.appendError(err.message);
this.setStreaming(false);
await this.saveSession();
}