From f32f9ce0b384f445d08a8f4148151277df8d8517 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 21 Mar 2023 19:07:08 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=AF=E6=8C=81=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=86=85=E9=85=8D=E7=BD=AE=E4=BA=BA=E5=B7=A5=E6=99=BA=E8=83=BD?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/7714?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/conf.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index be2fd0840..7566ae72f 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