litellm/tests/pass_through_unit_tests
Ishaan Jaff 2a3843aa57
[Fix] inconsistent response format in anthropic.messages.acreate() when using non anthropic providers (#20442)
* _translate_openai_content_to_anthropic

* test_response_format_consistency

* test fixes unit tests

* test fix

* fix: use dict access for anthropic content blocks in tests (#20447)

The translate_openai_response_to_anthropic method returns dicts, not objects.
Changed .type/.text/.thinking attribute access to dict ['key'] access.

---------

Co-authored-by: shin-bot-litellm <shin-bot-litellm@berri.ai>
2026-02-04 16:37:40 -08:00
..
messages_api_structured_output [Feat] Add Structured output for /v1/messages with Anthropic API, Azure Anthropic API, Bedrock Converse (#19545) 2026-01-21 20:09:18 -08:00
base_anthropic_messages_prompt_caching_test.py [Feat] Claude Code - Add support for Prompt Caching with Bedrock Converse (#19123) 2026-01-14 18:05:10 -08:00
base_anthropic_messages_tool_search_test.py [Feat] Add support for Tool Search on /messages API - Azure, Bedrock, Anthropic API (#19165) 2026-01-15 16:35:00 -08:00
base_anthropic_unified_messages_test.py [Fix] inconsistent response format in anthropic.messages.acreate() when using non anthropic providers (#20442) 2026-02-04 16:37:40 -08:00
test_anthropic_messages_passthrough.py [Fix] inconsistent response format in anthropic.messages.acreate() when using non anthropic providers (#20442) 2026-02-04 16:37:40 -08:00
test_anthropic_messages_prompt_caching.py [Feat] Claude Code - Add support for Prompt Caching with Bedrock Converse (#19123) 2026-01-14 18:05:10 -08:00
test_anthropic_messages_tool_search.py TestBedrockInvokeToolSearch 2026-01-24 15:36:30 -08:00
test_assemblyai_unit_tests_passthrough.py (QA+UI) - e2e flow for adding assembly ai passthrough endpoints (#8337) 2025-02-06 18:27:54 -08:00
test_bedrock_anthropic_messages_test.py [Fix] Claude Code (/messages) - Litellm fix claude code Bedrock Invoke usage, request signing (#19111) 2026-01-14 14:51:50 -08:00
test_bedrock_tool_use_beta_header.py [Fix] Claude Code x Bedrock Invoke fails with advanced-tool-use-2025-11-20 (#19373) 2026-01-19 10:16:18 -08:00
test_claude_code_marketplace.py use mock db for cluade code marketplace 2026-01-20 16:18:21 -08:00
test_custom_logger_passthrough.py [Feat] Pass through endpoints - ensure PassthroughStandardLoggingPayload is logged and contains method, url, request/response body (#10194) 2025-04-21 19:46:22 -07:00
test_pass_through_unit_tests.py fix test claude-sonnet-4-5-20250929 2025-10-31 18:13:29 -07:00
test_passthrough_registry_updates.py fix: pass through endpoints update registry (#19420) 2026-01-22 19:57:48 -08:00
test_unit_test_anthropic_pass_through.py Fix CI: Revert security scan changes and add GitGuardian ignore rules (#18358) 2025-12-22 17:03:53 -08:00
test_unit_test_passthrough_router.py test: migrate testing 2025-03-22 12:48:53 -07:00
test_unit_test_streaming.py [Feat] Pass through endpoints - ensure PassthroughStandardLoggingPayload is logged and contains method, url, request/response body (#10194) 2025-04-21 19:46:22 -07:00
test_vertex_ai_anthropic_streaming_cost_injection.py Add cost tracking for streaming in vertex ai 2025-11-20 15:08:38 +05:30
test_vertex_ai_live_passthrough.py fix test 2025-09-27 02:08:09 +05:30
test_websearch_interception_e2e.py [Feat] Claude Code x LiteLLM WebSearch - QA Fixes to work with Claude Code (#19294) 2026-01-17 16:30:31 -08:00