litellm/tests/unit/llms/bedrock/chat
ryan-crabbe-berri 90f6a2091e
test(anthropic): cover adaptive thinking on tool turns under modify_params (#52425)
* test(anthropic): cover adaptive thinking kept under modify_params on stripped tool turns

Integration wire tests for #43531 across Anthropic, Bedrock Converse, Bedrock invoke and Vertex, plus guards for legacy enabled thinking, earlier thinking blocks and modify_params off.

* fix(anthropic): keep adaptive thinking when modify_params finds a tool turn without thinking blocks

Adaptive thinking lets assistant turns start without a thinking block, so dropping it on a tool loop that lost its thinking_blocks silenced reasoning on Claude 4.6+ for no reason. Budget thinking keeps the drop. Fixes #43531.
2026-11-18 22:31:19 +00:00
..
agentcore fix(streaming)!: fail a stream that ends without a finish reason (#47665) 2026-10-31 11:29:26 -07:00
chat_completions fix(logging): warn when drop_params drops a requested reasoning level on the remaining paths (#48933) 2026-10-30 08:48:43 -07:00
invoke_transformations fix: keep LiteLLM-internal params out of provider request bodies (#46083) 2026-11-16 22:20:05 -08:00
mantle fix(bedrock): send native structured output for json_schema on Claude models that cannot force a tool (#49703) 2026-11-03 01:56:52 +00:00
__init__.py test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
test_bedrock_converse_handler.py fix: keep LiteLLM-internal params out of provider request bodies (#46083) 2026-11-16 22:20:05 -08:00
test_bedrock_gpt_oss.py test: move the unit half of 126 mixed legacy files into tests/unit (#45090) 2026-10-07 14:07:43 -07:00
test_converse_transformation.py test(anthropic): cover adaptive thinking on tool turns under modify_params (#52425) 2026-11-18 22:31:19 +00:00
test_converse_transformation_nova_2.py fix(bedrock): drop another model's signed thinking when replaying to a non-Claude Converse target (#50073) 2026-11-06 03:15:49 -08:00
test_invoke_handler.py fix(bedrock): bill ConverseStream at the served tier (#52565) 2026-11-18 13:04:27 -08:00
test_mistral_config.py test: migrate tests/llm_translation into unit, integration and e2e tiers (#45759) 2026-10-11 07:58:53 +00:00
test_native_output_fallback.py feat(bedrock): default to native structured output on Opus 5.5, Fable 5.1, Sonnet 5 and Haiku 5.5 (#50221) 2026-11-06 09:38:00 -08:00
test_service_tier.py fix(bedrock): answer 400 for service tiers Bedrock cannot serve, forward reserved (#50516) 2026-11-14 01:33:57 +00:00
test_streaming_choice_index.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
test_tool_result_images.py fix(bedrock): keep GPT tool-result images beside the tool result (#45579) 2026-10-09 18:02:23 -07:00
test_writer_palmyra.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00