Skip to content

Commit 2b29853

Browse files
committed
feat: update
1 parent 61d3a36 commit 2b29853

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

src/ModelInfoMap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export const ModelInfoMap: Record<
148148
tokenizerId: 'Xenova/gpt-4o',
149149
supportsImageInput: true,
150150
recommendedForCoding: true,
151+
recommendedForWriting: true,
151152
reasoning: true,
152153
legacy: false,
153154
openRouterModelId: 'openai/gpt-5',

test/recommended-models.test.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { getAllModelsWithIds } from '../src';
2+
3+
describe('Recommended models', () => {
4+
it('should output all non-legacy models recommended for coding', () => {
5+
const allModels = getAllModelsWithIds();
6+
const codingModels = allModels
7+
.filter((model) => model.recommendedForCoding === true && !model.legacy)
8+
.map((model) => model.id)
9+
.sort();
10+
11+
const expectedCodingModels = [
12+
'claude-sonnet-4-20250514',
13+
'deepseek-chat',
14+
'gemini-2.5-pro',
15+
'gpt-5',
16+
];
17+
18+
expect(codingModels).toEqual(expectedCodingModels);
19+
});
20+
21+
it('should output all non-legacy models recommended for writing', () => {
22+
const allModels = getAllModelsWithIds();
23+
const writingModels = allModels
24+
.filter((model) => model.recommendedForWriting === true && !model.legacy)
25+
.map((model) => model.id)
26+
.sort();
27+
28+
const expectedWritingModels = [
29+
'claude-sonnet-4-20250514',
30+
'gemini-2.5-pro',
31+
'gpt-5',
32+
];
33+
34+
expect(writingModels).toEqual(expectedWritingModels);
35+
});
36+
});

0 commit comments

Comments
 (0)