mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 AI Maximum number of Tokens setting value is no longer limited Fix https://github.com/siyuan-note/siyuan/issues/9023
This commit is contained in:
parent
53cb2c700a
commit
092b8b16ca
2 changed files with 2 additions and 5 deletions
|
|
@ -91,9 +91,6 @@ func setAI(c *gin.Context) {
|
|||
if 0 > ai.OpenAI.APIMaxTokens {
|
||||
ai.OpenAI.APIMaxTokens = 0
|
||||
}
|
||||
if 4096 < ai.OpenAI.APIMaxTokens {
|
||||
ai.OpenAI.APIMaxTokens = 4096
|
||||
}
|
||||
|
||||
model.Conf.AI = ai
|
||||
model.Conf.Save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue