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: 桌面端接入 OpenAI Chat API https://github.com/siyuan-note/siyuan/issues/7560
Liang Ding3f61b2da1a04
diff --git a/kernel/util/openai.go b/kernel/util/openai.goindex 48db08080c..3aaa62bee6 100644--- a/kernel/util/openai.go+++ b/kernel/util/openai.go@@ -33,7 +33,7 @@ var (OpenAIAPIKey = ""OpenAIAPITimeout = 15 * time.SecondOpenAIAPIProxy = ""- OpenAIAPIMaxTokens = 4096+ OpenAIAPIMaxTokens = 0)func ChatGPT(msg string) (ret string) {@@ -103,9 +103,6 @@ func initOpenAI() {OpenAIAPIMaxTokens = maxTokensInt}}- if 1 > OpenAIAPIMaxTokens {- OpenAIAPIMaxTokens = 4096- }logging.LogInfof("OpenAI API enabled [maxTokens=%d, timeout=%ds, proxy=%s]", OpenAIAPIMaxTokens, int(OpenAIAPITimeout.Seconds()), OpenAIAPIProxy)}