Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/7894

Vanessaf5c17d46930d
diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.ts
index 2dff06be68..28499ccca6 100644
--- a/app/src/ai/actions.ts
+++ b/app/src/ai/actions.ts
@@ -55,11 +55,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
action: inputElement.value,
}, (response) => {
dialog.destroy();
- let respContent = "";
- if (response.data && "" !== response.data) {
- respContent = "\n\n" + response.data;
- }
- fillContent(protyle, `${inputElement.value}${respContent}`, elements);
+ fillContent(protyle, response.data || "", elements);
});
});
}