Skip to content

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

:art: 支持应用内配置人工智能 https://github.com/siyuan-note/siyuan/issues/7714

Liang Dingf32f9ce0b384
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index be2fd0840e..7566ae72f7 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -319,10 +319,9 @@ func InitConf() {
Conf.Flashcard = conf.NewFlashcard()
}
- // TODO 支持应用内配置人工智能 https://github.com/siyuan-note/siyuan/issues/7714
- //if nil == Conf.AI {
- // Conf.AI = conf.NewAI()
- //}
+ if nil == Conf.AI {
+ Conf.AI = conf.NewAI()
+ }
Conf.ReadOnly = util.ReadOnly