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:
co-authored by
Claude Opus 4.6
parent
dc4c80a08b
commit
cc875d1c43
@@ -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'
|
||||
}
|
||||
|
||||
|
||||
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user