fix(app): update haiku model ID from retired claude-3-5-haiku to claude-haiku-4-5

The old claude-3-5-haiku-20241022 model ID returns 404 from the Anthropic API.
Updated proxy mapping and test to use claude-haiku-4-5-20251001.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-06 18:45:48 +00:00
co-authored by Claude Opus 4.6
parent dc4c80a08b
commit cc875d1c43
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ const SEARCH_WEB_TOOL = {
function mapModelToApi(model: string): string {
if (model?.includes('opus')) return 'claude-opus-4-20250514'
if (model?.includes('haiku')) return 'claude-3-5-haiku-20241022'
if (model?.includes('haiku')) return 'claude-haiku-4-5-20251001'
return 'claude-sonnet-4-20250514'
}
+2 -2
View File
@@ -40,7 +40,7 @@ describe('Proxy Integration', () => {
describe('Model mapping', () => {
function mapModelToApi(model: string): string {
if (model?.includes('opus')) return 'claude-opus-4-20250514'
if (model?.includes('haiku')) return 'claude-3-5-haiku-20241022'
if (model?.includes('haiku')) return 'claude-haiku-4-5-20251001'
return 'claude-sonnet-4-20250514'
}
@@ -55,7 +55,7 @@ describe('Proxy Integration', () => {
})
it('should map haiku model correctly', () => {
expect(mapModelToApi('haiku')).toBe('claude-3-5-haiku-20241022')
expect(mapModelToApi('haiku')).toBe('claude-haiku-4-5-20251001')
})
it('should default to sonnet for unknown models', () => {