fix: add max_tokens 131072 to OpenAI provider for minimax
All checks were successful
BotServer CI/CD / build (push) Successful in 4m25s
All checks were successful
BotServer CI/CD / build (push) Successful in 4m25s
This commit is contained in:
parent
1b040a4278
commit
517d5435a9
1 changed files with 4 additions and 2 deletions
|
|
@ -321,7 +321,8 @@ impl LLMProvider for OpenAIClient {
|
|||
.json(&serde_json::json!({
|
||||
"model": model,
|
||||
"messages": messages,
|
||||
"stream": false
|
||||
"stream": false,
|
||||
"max_tokens": 131072
|
||||
}))
|
||||
.send()
|
||||
.await?;
|
||||
|
|
@ -414,7 +415,8 @@ impl LLMProvider for OpenAIClient {
|
|||
let mut request_body = serde_json::json!({
|
||||
"model": model,
|
||||
"messages": messages,
|
||||
"stream": true
|
||||
"stream": true,
|
||||
"max_tokens": 131072
|
||||
});
|
||||
|
||||
// Add tools to the request if provided
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue