mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-04 18:59:08 +01:00
set maxcompletiontokens (#1260)
This commit is contained in:
parent
3a21d3183c
commit
38eeba5bd2
@ -267,6 +267,7 @@ func RunLocalCompletionStream(ctx context.Context, request wshrpc.OpenAiStreamRe
|
|||||||
Model: request.Opts.Model,
|
Model: request.Opts.Model,
|
||||||
Messages: ConvertPrompt(request.Prompt),
|
Messages: ConvertPrompt(request.Prompt),
|
||||||
MaxTokens: request.Opts.MaxTokens,
|
MaxTokens: request.Opts.MaxTokens,
|
||||||
|
MaxCompletionTokens: request.Opts.MaxTokens,
|
||||||
Stream: true,
|
Stream: true,
|
||||||
}
|
}
|
||||||
if request.Opts.MaxChoices > 1 {
|
if request.Opts.MaxChoices > 1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user