@@ -8,7 +8,16 @@ import {
8
8
// These tests reflect the current allow-list logic: only exact matches to the supported model names are considered supported.
9
9
describe ( 'isCodeInterpreterSupported' , ( ) => {
10
10
// 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
+ ]
12
21
supported . forEach ( ( model ) => {
13
22
it ( `returns true for supported model: ${ model } ` , ( ) => {
14
23
expect ( isCodeInterpreterSupported ( model ) ) . toBe ( true )
@@ -22,9 +31,6 @@ describe('isCodeInterpreterSupported', () => {
22
31
'gpt-4.1-mini' ,
23
32
'gpt-4.1-nano' ,
24
33
'gpt-4-0613' ,
25
- 'o4-mini-deep-research' ,
26
- 'o3-pro' ,
27
- 'o3-deep-research' ,
28
34
'gpt-4-turbo' ,
29
35
'gpt-4-turbo-2024-04-09' ,
30
36
'o3-mini' ,
@@ -52,7 +58,10 @@ describe('isWebSearchSupported', () => {
52
58
'gpt-4' ,
53
59
'gpt-3.5-turbo' ,
54
60
'o4-mini' ,
61
+ 'o4-mini-deep-research-2025-06-26' ,
55
62
'o3' ,
63
+ 'o3-pro' ,
64
+ 'o3-deep-research-2025-06-26' ,
56
65
]
57
66
supported . forEach ( ( model ) => {
58
67
it ( `returns true for supported model: ${ model } ` , ( ) => {
@@ -67,9 +76,6 @@ describe('isWebSearchSupported', () => {
67
76
'gpt-4.1-mini' ,
68
77
'gpt-4.1-nano' ,
69
78
'gpt-4-0613' ,
70
- 'o4-mini-deep-research' ,
71
- 'o3-pro' ,
72
- 'o3-deep-research' ,
73
79
'gpt-4-turbo' ,
74
80
'gpt-4-turbo-2024-04-09' ,
75
81
'o3-mini' ,
0 commit comments