An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797
Danielb953135400e8
diff --git a/kernel/agent/agent.go b/kernel/agent/agent.goindex 2dcdd974d2..698d373b87 100644--- a/kernel/agent/agent.go+++ b/kernel/agent/agent.go@@ -503,7 +503,7 @@ func GenerateTitle(client *openai.Client, model string, userMsg string, aiReplyresp, err := client.CreateChatCompletion(context.Background(), openai.ChatCompletionRequest{Model: model,Messages: []openai.ChatCompletionMessage{- {Role: openai.ChatMessageRoleSystem, Content: "Summarize the conversation below into a short title (under 12 words). Condense the topic. Do NOT repeat the user's message verbatim. Reply in " + language + ". Return only the title, no quotes, no period."},+ {Role: openai.ChatMessageRoleSystem, Content: "Extract the core topic from the conversation below and generate a short title (under 12 words). Be specific, not generic. NEVER copy the user's message word-for-word. For example, 'Diary' is a good title for a conversation about writing a diary, while 'Help me write a diary' is bad. Reply in " + language + ". Return only the title, no quotes."},{Role: openai.ChatMessageRoleUser, Content: userMsg},{Role: openai.ChatMessageRoleAssistant, Content: aiReply},},