mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
OpenCodeGoChatConfig inherited OpenAIGPTConfig's supported params, which omit reasoning_effort, so drop_params silently removed it and drop_params false raised UnsupportedParamsError even though the catalog marks these models supports_reasoning. The chat config now adds reasoning_effort when litellm.supports_reasoning is true for the opencode_go model, leaving catalog-unknown models unchanged. Fixes #51871. Builds on the approach in #51879. Co-authored-by: PCTEJA <39472754+PCTEJA@users.noreply.github.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| chat | ||
| harness | ||
| __init__.py | ||
| test_transformation.py | ||