mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
5c0a1ae31a
1 changed files with 1 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ var (
|
|||
OpenAIAPIKey = ""
|
||||
OpenAIAPITimeout = 15 * time.Second
|
||||
OpenAIAPIProxy = ""
|
||||
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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue