fix(agents): upgrade coordinator model to Sonnet 4.5 for structured output support
claude-sonnet-4-20250514 does not support output_config (structured outputs). Changed coordinator model to claude-sonnet-4-5-20250929 which supports it. Specialist agents remain on their original models (no output_config needed). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9e9865acb0
commit
d608403535
|
|
@ -153,7 +153,7 @@ export async function* agentLoop(
|
|||
for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
|
||||
try {
|
||||
stream = anthropicClient.messages.stream({
|
||||
model: 'claude-sonnet-4-20250514',
|
||||
model: 'claude-sonnet-4-5-20250929',
|
||||
system: systemPrompt,
|
||||
messages: messages as any,
|
||||
tools: getToolsForClaudeAPI(additionalTools) as any,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export enum SpecialistAgentType {
|
|||
}
|
||||
|
||||
/** Agent 模型选择 */
|
||||
export type AgentModel = 'claude-sonnet-4-20250514' | 'claude-haiku-4-5-20251001';
|
||||
export type AgentModel = 'claude-sonnet-4-5-20250929' | 'claude-sonnet-4-20250514' | 'claude-haiku-4-5-20251001';
|
||||
|
||||
/** Agent 配置 */
|
||||
export interface AgentConfig {
|
||||
|
|
|
|||
Loading…
Reference in New Issue