Skip to content

Commit f849352

Browse files
committed
feat(anthropic): support structured outputs for Claude Haiku 4.5
1 parent a221d21 commit f849352

File tree

3 files changed

+46
-18
lines changed

3 files changed

+46
-18
lines changed

js/plugins/anthropic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"genkit": "workspace:^"
3030
},
3131
"dependencies": {
32-
"@anthropic-ai/sdk": "^0.71.0"
32+
"@anthropic-ai/sdk": "^0.71.2"
3333
},
3434
"devDependencies": {
3535
"@types/node": "^20.11.16",

js/plugins/anthropic/src/models.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,17 @@ export const KNOWN_CLAUDE_MODELS: Record<
9595
),
9696
'claude-haiku-4-5': commonRef(
9797
'claude-haiku-4-5',
98-
AnthropicThinkingConfigSchema
98+
AnthropicThinkingConfigSchema,
99+
{
100+
supports: {
101+
multiturn: true,
102+
tools: true,
103+
media: true,
104+
systemRole: true,
105+
output: ['text', 'json'],
106+
constrained: 'all',
107+
},
108+
}
99109
),
100110
'claude-opus-4-1': commonRef(
101111
'claude-opus-4-1',

js/pnpm-lock.yaml

Lines changed: 34 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)