Skip to content

Commit cc9ffdd

Browse files
authored
✨ feat: add 2 new models to openai provider (#3470)
1 parent 660bcc7 commit cc9ffdd

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

src/config/modelProviders/openai.ts

+18-1
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,27 @@ const OpenAI: ModelProviderCard = {
2424
tokens: 128_000,
2525
vision: true,
2626
},
27+
{
28+
description: 'Latest GPT-4o snapshot that supports Structured Outputs',
29+
displayName: 'GPT-4o (240806)',
30+
enabled: true,
31+
functionCall: true,
32+
id: 'gpt-4o-2024-08-06',
33+
tokens: 128_000,
34+
vision: true,
35+
},
36+
{
37+
description: 'Dynamic model continuously updated to the current version of GPT-4o in ChatGPT',
38+
displayName: 'ChatGPT-4o',
39+
enabled: true,
40+
functionCall: true,
41+
id: 'chatgpt-4o-latest',
42+
tokens: 128_000,
43+
vision: true,
44+
},
2745
{
2846
description: 'GPT-4 Turbo with Vision',
2947
displayName: 'GPT-4 Turbo',
30-
enabled: true,
3148
functionCall: true,
3249
id: 'gpt-4-turbo',
3350
tokens: 128_000,

src/store/user/slices/modelList/selectors/modelProvider.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('modelProviderSelectors', () => {
4949
const s = merge(initialState, {}) as unknown as UserStore;
5050

5151
const result = modelProviderSelectors.getDefaultEnabledModelsById('openai')(s);
52-
expect(result).toEqual(['gpt-4o-mini', 'gpt-4o', 'gpt-4-turbo']);
52+
expect(result).toEqual(['gpt-4o-mini', 'gpt-4o', 'gpt-4o-2024-08-06', 'chatgpt-4o-latest']);
5353
});
5454

5555
it('should return undefined for a non-existing provider', () => {

0 commit comments

Comments
 (0)