litellm/tests/unit/llms/openai/responses
kenneth-berri 018104fa40
fix(responses): forward reasoning.effort for a Router deployment of a model the cost map does not list (#56048)
* fix(responses): forward reasoning.effort for a Router deployment the cost map has never listed

The Router registers every deployment under its shared backend key, and for a model the cost map does not list that row is empty. The reasoning gate read the empty row as a known model without supports_reasoning and refused reasoning.effort, so the fail-open path for unknown models was unreachable through the Router and the proxy. A row that names no provider is now treated as unknown.

Fixes #55919

* fix(responses): tell a Router-registered row from a catalog row by the catalog, not the provider field

A second deployment of the same backend model writes the resolved provider back onto the shared row, so the provider field could not tell the two apart.

* test(messages): expect effort none on the Responses bridge for a Router deployment of an unlisted model

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* docs(responses): say when a resolved model with no reasoning flag is still treated as unknown

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-12-03 12:13:09 -08:00
..
count_tokens fix(anthropic): map /v1/messages fields onto OpenAI Responses equivalents or reject them (#54173) 2026-11-25 19:30:01 +00:00
__init__.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_openai_count_tokens_transformation.py fix(responses): drop Gemini thought signatures from items replayed to non-Gemini providers (#55725) 2026-12-02 20:49:33 +00:00
test_openai_responses_data_residency.py feat(openai): bill gov.api.openai.com FedRAMP endpoint with 1.1x uplift (#49951) 2026-11-04 08:57:42 -08:00
test_openai_responses_guardrail_handler.py refactor(typing): clear 21 basedpyright Any errors across 15 files (#55751) 2026-12-02 19:50:42 -08:00
test_openai_responses_guardrail_tool_merge.py fix(responses): keep sent tool names in cold storage replay and guardrail rewrites (#54240) 2026-11-25 05:41:32 +00:00
test_openai_responses_http.py fix(responses): preserve typed parts when logprobs is omitted (#48686) 2026-10-27 18:33:39 -07:00
test_openai_responses_transformation.py fix(responses): forward reasoning.effort for a Router deployment of a model the cost map does not list (#56048) 2026-12-03 12:13:09 -08:00