Mistral (and several other providers) reject 'max_completion_tokens' with a 422 because they haven't adopted the newer OpenAI parameter name. When the openai provider is configured with a custom base_url (e.g. Mistral, Together AI), fall back to the widely-supported 'max_tokens' parameter. Native OpenAI (no custom base_url) and Groq still use 'max_completion_tokens'. Fixes #852 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| anthropic_llm.py | ||
| claude_code_llm.py | ||
| codex_llm.py | ||
| gemini_llm.py | ||
| litellm_llm.py | ||
| mock_llm.py | ||
| none_llm.py | ||
| openai_compatible_llm.py | ||