litellm/tests/unit/llms/anthropic/chat
Kerry Lu 7df3217276
fix(anthropic): accept temperature=1 on Claude models that removed sampling params (#52341)
* fix(anthropic): accept temperature=1 on Claude models that removed sampling params

get_supported_openai_params dropped temperature for models whose cost-map row says
supports_sampling_params false, so the generic unsupported-param check refused
temperature=1 before the Anthropic mapping could let it through. Keep temperature
listed and leave top_p out, so the mapping accepts 1 and refuses or drops the rest.

Supersedes #51398

Co-authored-by: rome-xi <2685138823@qq.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(anthropic): type the cost map fixture argument in the new temperature tests

---------

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: rome-xi <2685138823@qq.com>
2026-11-17 13:24:45 -08:00
..
guardrail_translation feat(router): add the Switchyard stage router as an auto router strategy (#50407) 2026-11-06 12:07:57 -08:00
__init__.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
conftest.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_anthropic_chat_handler.py fix(anthropic): preserve streamed tool argument fragments verbatim (#50470) 2026-11-07 01:44:48 -08:00
test_anthropic_chat_transformation.py fix(anthropic): accept temperature=1 on Claude models that removed sampling params (#52341) 2026-11-17 13:24:45 -08:00
test_code_interpreter_results_extraction.py feat(anthropic): workload identity federation and pluggable identity sources (#44448) 2026-10-03 17:08:30 -07:00
test_transformation.py test: move whole-unit legacy test files into tests/unit and delete dead skips (#44807) 2026-10-07 05:02:28 +00:00