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
Danielf44b3ce2b11a
diff --git a/kernel/agent/agent.go b/kernel/agent/agent.goindex 9c298bc6e2..2dcdd974d2 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: "Generate a concise conversation title based on the conversation below. Reply in " + language + ". Return only the title, no quotes."},+ {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.ChatMessageRoleUser, Content: userMsg},{Role: openai.ChatMessageRoleAssistant, Content: aiReply},},