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]

fix(anthropic-responses): type structured output strictness

eugene-yao-zocdoc482e712da183
diff --git a/litellm/types/llms/anthropic.py b/litellm/types/llms/anthropic.py
index cc6eccbf3e0..4ce04dd0d69 100644
--- a/litellm/types/llms/anthropic.py
+++ b/litellm/types/llms/anthropic.py
@@ -36,6 +36,7 @@ AnthropicInputSchema = TypedDict(
class AnthropicOutputSchema(TypedDict, total=False):
type: Required[Literal["json_schema"]]
schema: Required[dict]
+ strict: ReadOnly[bool]
class AnthropicOutputConfig(TypedDict, total=False):