mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 AI supports configuration randomness and context number https://github.com/siyuan-note/siyuan/issues/10660
This commit is contained in:
parent
97e3ff656d
commit
a7e1e3abac
12 changed files with 66 additions and 16 deletions
|
|
@ -194,6 +194,10 @@ func setAI(c *gin.Context) {
|
|||
ai.OpenAI.APIMaxTokens = 0
|
||||
}
|
||||
|
||||
if 0 >= ai.OpenAI.APITemperature || 2 < ai.OpenAI.APITemperature {
|
||||
ai.OpenAI.APITemperature = 1.0
|
||||
}
|
||||
|
||||
model.Conf.AI = ai
|
||||
model.Conf.Save()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue