feat: add claude sonnet 4.6 model option for tests

This commit is contained in:
Jiahao Luo
2026-03-01 23:31:04 +08:00
parent b8c38adf70
commit 1813d6f6f6
2 changed files with 11 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
const CLAUDE_MODELS = [
{ value: 'claude-opus-4-6', label: 'Claude Opus 4.6' },
{ value: 'claude-sonnet-4-6', label: 'Claude Sonnet 4.6' },
{ value: 'claude-opus-4-5-20251101', label: 'Claude Opus 4.5' },
{ value: 'claude-sonnet-4-5-20250929', label: 'Claude Sonnet 4.5' },
{ value: 'claude-sonnet-4-20250514', label: 'Claude Sonnet 4' },

View File

@@ -0,0 +1,10 @@
const { CLAUDE_MODELS } = require('../config/models')
describe('models config', () => {
it('places Claude Sonnet 4.6 as the second Claude model option', () => {
expect(CLAUDE_MODELS[1]).toEqual({
value: 'claude-sonnet-4-6',
label: 'Claude Sonnet 4.6'
})
})
})