mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +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
|
|
@ -54,10 +54,10 @@ func ChatGPT(msg string, contextMsgs []string, c *openai.Client, model string, m
|
|||
}
|
||||
|
||||
req := openai.ChatCompletionRequest{
|
||||
Model: model,
|
||||
MaxTokens: maxTokens,
|
||||
Temperature: float32(temperature),
|
||||
Messages: reqMsgs,
|
||||
Model: model,
|
||||
MaxCompletionTokens: maxTokens,
|
||||
Temperature: float32(temperature),
|
||||
Messages: reqMsgs,
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(timeout)*time.Second)
|
||||
defer cancel()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue