fix(agents): update Haiku model ID from 3.5 to 4.5

claude-haiku-3-5-20241022 returns 404 on the proxy. Updated to
claude-haiku-4-5-20251001 in agent configs and context injector.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-06 08:59:58 -08:00
parent fb811c7cf4
commit 20001277ff
2 changed files with 4 additions and 4 deletions

View File

@ -480,7 +480,7 @@ export class ContextInjectorService {
// Use Claude to summarize the older messages
const summaryResponse = await anthropicClient.messages.create({
model: 'claude-haiku-3-5-20241022', // Use Haiku for cost efficiency
model: 'claude-haiku-4-5-20251001', // Use Haiku for cost efficiency
system: '你是对话摘要专家。请将以下对话历史压缩为简洁的摘要,保留所有关键信息(用户个人信息、评估结果、重要决策)。',
messages: [
{

View File

@ -18,7 +18,7 @@ export enum SpecialistAgentType {
}
/** Agent 模型选择 */
export type AgentModel = 'claude-sonnet-4-20250514' | 'claude-haiku-3-5-20241022';
export type AgentModel = 'claude-sonnet-4-20250514' | 'claude-haiku-4-5-20251001';
/** Agent 配置 */
export interface AgentConfig {
@ -71,7 +71,7 @@ export const AGENT_CONFIGS: Record<SpecialistAgentType, AgentConfig> = {
},
[SpecialistAgentType.CASE_ANALYST]: {
type: SpecialistAgentType.CASE_ANALYST,
model: 'claude-haiku-3-5-20241022',
model: 'claude-haiku-4-5-20251001',
maxTurns: 2,
maxTokens: 1500,
temperature: 0, // 案例检索需要确定性
@ -80,7 +80,7 @@ export const AGENT_CONFIGS: Record<SpecialistAgentType, AgentConfig> = {
},
[SpecialistAgentType.MEMORY_MANAGER]: {
type: SpecialistAgentType.MEMORY_MANAGER,
model: 'claude-haiku-3-5-20241022',
model: 'claude-haiku-4-5-20251001',
maxTurns: 2,
maxTokens: 1024,
temperature: 0, // 信息提取需要确定性