litellm/tests/unit/llms/opencode
Moe Khalil ea2598a05c fix(opencode_go): forward reasoning_effort on chat-protocol models that support reasoning
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>
2026-11-16 23:17:20 +00:00
..
chat fix(opencode_go): forward reasoning_effort on chat-protocol models that support reasoning 2026-11-16 23:17:20 +00:00
harness fix(harness): set PWD to the working directory of local sandbox commands (#47530) 2026-10-20 20:06:11 +00:00
__init__.py feat: add litellm.agent() to run claude code, codex, opencode and deep agents through the ai gateway (#43885) 2026-10-01 22:27:49 +00:00
test_transformation.py refactor: clean up fresh tech debt in proxy auth reads, chatgpt credential forwarding, messages drop_params reads, router context signatures and spend log reads (#46643) 2026-11-04 09:09:50 +00:00