Skip to content

Commit 2ad73b4

Browse files
authored
feat: update supported models for code interpreter and web search tools (#135)
1 parent cd5ea20 commit 2ad73b4

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

src/lib/utils/prompting.test.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ import {
88
// These tests reflect the current allow-list logic: only exact matches to the supported model names are considered supported.
99
describe('isCodeInterpreterSupported', () => {
1010
// Supported models (should return true)
11-
const supported = ['gpt-4o', 'gpt-4.1', 'gpt-4', 'o4-mini', 'o3']
11+
const supported = [
12+
'gpt-4o',
13+
'gpt-4.1',
14+
'gpt-4',
15+
'o4-mini',
16+
'o4-mini-deep-research-2025-06-26',
17+
'o3',
18+
'o3-pro',
19+
'o3-deep-research-2025-06-26',
20+
]
1221
supported.forEach((model) => {
1322
it(`returns true for supported model: ${model}`, () => {
1423
expect(isCodeInterpreterSupported(model)).toBe(true)
@@ -22,9 +31,6 @@ describe('isCodeInterpreterSupported', () => {
2231
'gpt-4.1-mini',
2332
'gpt-4.1-nano',
2433
'gpt-4-0613',
25-
'o4-mini-deep-research',
26-
'o3-pro',
27-
'o3-deep-research',
2834
'gpt-4-turbo',
2935
'gpt-4-turbo-2024-04-09',
3036
'o3-mini',
@@ -52,7 +58,10 @@ describe('isWebSearchSupported', () => {
5258
'gpt-4',
5359
'gpt-3.5-turbo',
5460
'o4-mini',
61+
'o4-mini-deep-research-2025-06-26',
5562
'o3',
63+
'o3-pro',
64+
'o3-deep-research-2025-06-26',
5665
]
5766
supported.forEach((model) => {
5867
it(`returns true for supported model: ${model}`, () => {
@@ -67,9 +76,6 @@ describe('isWebSearchSupported', () => {
6776
'gpt-4.1-mini',
6877
'gpt-4.1-nano',
6978
'gpt-4-0613',
70-
'o4-mini-deep-research',
71-
'o3-pro',
72-
'o3-deep-research',
7379
'gpt-4-turbo',
7480
'gpt-4-turbo-2024-04-09',
7581
'o3-mini',

src/lib/utils/prompting.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ Only use the code interpreter tool when it's actually needed for calculations or
3939
*/
4040
export const CODE_INTERPRETER_SUPPORTED_MODELS = Object.freeze(
4141
new Set([
42-
// Official OpenAI models with code interpreter support (as of June 2024)
4342
'gpt-4o',
4443
'gpt-4.1',
4544
'gpt-4',
4645
'o4-mini',
46+
'o4-mini-deep-research-2025-06-26',
4747
'o3',
48+
'o3-pro',
49+
'o3-deep-research-2025-06-26',
4850
]),
4951
)
5052

@@ -62,13 +64,15 @@ export function isCodeInterpreterSupported(model: string): boolean {
6264
*/
6365
export const WEB_SEARCH_SUPPORTED_MODELS = Object.freeze(
6466
new Set([
65-
// Official OpenAI models with web search support (as of June 2024)
6667
'gpt-4o',
6768
'gpt-4.1',
6869
'gpt-4',
6970
'gpt-3.5-turbo',
7071
'o4-mini',
72+
'o4-mini-deep-research-2025-06-26',
7173
'o3',
74+
'o3-pro',
75+
'o3-deep-research-2025-06-26',
7276
]),
7377
)
7478

0 commit comments

Comments
 (0)