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:
hailin 2026-02-07 01:58:31 -08:00
parent 9e9865acb0
commit d608403535
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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 {