mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
8bc42cd121
commit
404d9f63d0
1 changed files with 4 additions and 4 deletions
|
|
@ -55,7 +55,7 @@ func ChatGPT(msg string, contextMsgs []string, c *openai.Client, model string, m
|
||||||
|
|
||||||
req := openai.ChatCompletionRequest{
|
req := openai.ChatCompletionRequest{
|
||||||
Model: model,
|
Model: model,
|
||||||
MaxTokens: maxTokens,
|
MaxCompletionTokens: maxTokens,
|
||||||
Temperature: float32(temperature),
|
Temperature: float32(temperature),
|
||||||
Messages: reqMsgs,
|
Messages: reqMsgs,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue