This commit is contained in:
Liang Ding 2023-03-21 19:46:55 +08:00
parent cb1c20ea92
commit bbbedac655
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 24 additions and 68 deletions

View file

@ -323,6 +323,15 @@ func InitConf() {
Conf.AI = conf.NewAI()
}
if "" != Conf.AI.OpenAI.APIKey {
logging.LogInfof("OpenAI API enabled\n"+
" baseURL=%s\n"+
" timeout=%ds\n"+
" proxy=%s\n"+
" maxTokens=%d",
Conf.AI.OpenAI.APIBaseURL, Conf.AI.OpenAI.APITimeout, Conf.AI.OpenAI.APIProxy, Conf.AI.OpenAI.APIMaxTokens)
}
Conf.ReadOnly = util.ReadOnly
if "" != util.AccessAuthCode {