litellm/tests/unit/llms/bedrock/chat
ryan-crabbe-berri 4cbee97019
fix(bedrock): send text.format.strict for GPT native structured output on Converse (#52419)
* test(bedrock): cover text.format.strict for GPT native structured output

* fix(bedrock): send text.format.strict for GPT native structured output on Converse

OpenAI GPT models on Bedrock Converse require additionalModelRequestFields.text.format.strict=true alongside a json_schema outputConfig. Merge it into any caller-supplied text fields. Fixes #49848.

* test(bedrock): cover strict for custom-named GPT profile deployments

* fix(bedrock): use base_model to send strict for custom-named GPT deployments

* fix(bedrock): only trust base_model for custom-named GPT deployments

* test(bedrock): cover custom names that contain provider words

* fix(bedrock): check the model catalog before trusting base_model
2026-11-19 00:35:39 +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 fix(bedrock): send text.format.strict for GPT native structured output on Converse (#52419) 2026-11-19 00:35:39 +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