Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Add test assertion for deepseek.v3-v1:0 native structured output

Nicholas Gigliotti0ef8eb612106
diff --git a/tests/test_litellm/llms/bedrock/chat/test_converse_transformation.py b/tests/test_litellm/llms/bedrock/chat/test_converse_transformation.py
index 2b57fd23a3b..a26b2a8bd64 100644
--- a/tests/test_litellm/llms/bedrock/chat/test_converse_transformation.py
+++ b/tests/test_litellm/llms/bedrock/chat/test_converse_transformation.py
@@ -2669,6 +2669,8 @@ def test_supports_native_structured_outputs():
assert config._supports_native_structured_outputs("minimax.minimax-m2")
assert config._supports_native_structured_outputs("moonshot.kimi-k2-thinking")
assert config._supports_native_structured_outputs("nvidia.nemotron-nano-3-30b")
+ # DeepSeek: old substring "deepseek-v3.1" didn't match real ID
+ assert config._supports_native_structured_outputs("deepseek.v3-v1:0")
# Unsupported models -- should fall back to tool-call approach
assert not config._supports_native_structured_outputs("anthropic.claude-3-5-sonnet-20241022-v2:0")