mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00: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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user