An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 加入针对内容块的人工智能辅助支持 https://github.com/siyuan-note/siyuan/issues/7566
Liang Ding1cc65f5f2acc
diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.tsindex d4e2781119..8d2ced11d2 100644--- a/app/src/ai/actions.ts+++ b/app/src/ai/actions.ts@@ -85,7 +85,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {}, {label: window.siyuan.languages.aiExtractSummary,click() {- fetchPost("/api/ai/chatGPTWithAction", {ids, action: "Summarize"}, (response) => {+ fetchPost("/api/ai/chatGPTWithAction", {ids, action: window.siyuan.languages.aiExtractSummary}, (response) => {focusByRange(protyle.toolbar.range);insertHTML(response.data, protyle, true);});@@ -93,7 +93,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {}, {label: window.siyuan.languages.aiBrainStorm,click() {- fetchPost("/api/ai/chatGPTWithAction", {ids, action: "Brainstorm"}, (response) => {+ fetchPost("/api/ai/chatGPTWithAction", {ids, action: window.siyuan.languages.aiBrainStorm}, (response) => {focusByRange(protyle.toolbar.range);insertHTML(response.data, protyle, true);});@@ -101,7 +101,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {}, {label: window.siyuan.languages.aiFixGrammarSpell,click() {- fetchPost("/api/ai/chatGPTWithAction", {ids, action: "Identify the language used in the following text and mark it as {x}, correct the grammar and spelling errors, return the result in language {x}"}, (response) => {+ fetchPost("/api/ai/chatGPTWithAction", {ids, action: window.siyuan.languages.aiFixGrammarSpell}, (response) => {focusByRange(protyle.toolbar.range);insertHTML(response.data, protyle, true);});