mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🎨 Azure OpenAI AI support https://github.com/siyuan-note/siyuan/issues/8095
This commit is contained in:
parent
7e87c8c8ad
commit
a2f95e3920
9 changed files with 47 additions and 8 deletions
|
|
@ -408,6 +408,9 @@ func InitConf() {
|
|||
if "" == Conf.AI.OpenAI.APIUserAgent {
|
||||
Conf.AI.OpenAI.APIUserAgent = util.UserAgent
|
||||
}
|
||||
if "" == Conf.AI.OpenAI.APIProvider {
|
||||
Conf.AI.OpenAI.APIProvider = "OpenAI"
|
||||
}
|
||||
|
||||
if "" != Conf.AI.OpenAI.APIKey {
|
||||
logging.LogInfof("OpenAI API enabled\n"+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue