litellm/tests/test_litellm/llms/openai_like
mateo-berri 71a951691a fix(anthropic): cap reasoning_effort thinking budget below max_tokens on /v1/messages
A deployment carrying reasoning_effort in its litellm_params on the
/v1/messages passthrough mapped the effort to a legacy thinking block
whose budget_tokens was forwarded as is, so any request whose max_tokens
sat at or below that budget was rejected upstream with a 400. The mapped
budget now runs through the same cap the adaptive-to-legacy branch and
the chat path already use: it is clamped to max_tokens - 1, and dropped
with a warning when even the minimum budget cannot fit.

The cap helper becomes public since three call sites outside
AnthropicConfig use it.
2026-08-29 15:24:05 -07:00
..
chat fix: Resolve pytest module name collision for test_transformation.py files (#16661) 2025-11-14 16:50:40 -08:00
embedding style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
messages fix(anthropic): cap reasoning_effort thinking budget below max_tokens on /v1/messages 2026-08-29 15:24:05 -07:00
responses style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
__init__.py [Feat] Allow adding OpenAI compatible chat providers using .json + add public ai provider (#17448) 2025-12-04 17:59:25 -08:00
test_abliteration_provider.py test: run the 30 test files stranded in the second mirror (#37595) 2026-08-20 10:59:43 -07:00
test_assemblyai_provider.py test: run the 30 test files stranded in the second mirror (#37595) 2026-08-20 10:59:43 -07:00
test_charity_engine.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_cognition_provider.py fix(cognition): price swe-1.7 at the standard tier, add swe-1.7-lightning 2026-08-20 19:41:12 -07:00
test_dynamic_config.py test: close mutation-testing gaps in container, skills and openai-like config factories 2026-08-28 09:28:14 -07:00
test_empiriolabs_provider.py test: run the 30 test files stranded in the second mirror (#37595) 2026-08-20 10:59:43 -07:00
test_json_providers.py chore: litellm oss staging (#30968) 2026-06-23 07:31:44 -07:00
test_libertai_provider.py chore(oss): litellm oss staging 150626 (#30463) 2026-06-16 12:06:41 -07:00
test_meta_provider.py feat: add Meta Model API provider and muse-spark-1.1 (day-0) (#32701) 2026-07-09 20:45:27 -07:00
test_pinstripes_provider.py chore: litellm oss staging (#30745) 2026-06-18 13:55:35 -07:00
test_scx_ai_provider.py fix(scx-ai): correct the temperature ceiling to match the endpoint 2026-08-07 11:37:38 +10:00
test_tensormesh_provider.py chore(oss): litellm oss staging 120626 (#30292) 2026-06-12 09:49:25 -07:00
test_xiaomi_mimo.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00