Skip to content

Commit 302fad5

Browse files
authored
Adds native structured output support for claude-haiku-4-5 (#3670)
1 parent 097a2d2 commit 302fad5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pydantic_ai_slim/pydantic_ai/profiles/anthropic.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
def anthropic_model_profile(model_name: str) -> ModelProfile | None:
1010
"""Get the model profile for an Anthropic model."""
11-
models_that_support_json_schema_output = ('claude-sonnet-4-5', 'claude-opus-4-1', 'claude-opus-4-5')
11+
models_that_support_json_schema_output = (
12+
'claude-haiku-4-5',
13+
'claude-sonnet-4-5',
14+
'claude-opus-4-1',
15+
'claude-opus-4-5',
16+
)
1217
"""These models support both structured outputs and strict tool calling."""
1318
# TODO update when new models are released that support structured outputs
1419
# https://docs.claude.com/en/docs/build-with-claude/structured-outputs#example-usage

0 commit comments

Comments
 (0)