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
41b4984de3
commit
5300638622
11 changed files with 55 additions and 10 deletions
|
|
@ -198,6 +198,10 @@ func setAI(c *gin.Context) {
|
|||
ai.OpenAI.APITemperature = 1.0
|
||||
}
|
||||
|
||||
if 1 > ai.OpenAI.APIMaxContexts || 64 < ai.OpenAI.APIMaxContexts {
|
||||
ai.OpenAI.APIMaxContexts = 7
|
||||
}
|
||||
|
||||
model.Conf.AI = ai
|
||||
model.Conf.Save()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue