fix: add max_tokens 131072 to OpenAI provider for minimax
All checks were successful
BotServer CI/CD / build (push) Successful in 4m25s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-13 20:26:03 -03:00
parent 1b040a4278
commit 517d5435a9

View file

@ -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