Skip to content

Commit bddcbcf

Browse files
feat(api): adding gpt-4.1 family of model IDs
1 parent d342f17 commit bddcbcf

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-44b20fa9d24544217fe6bb48852037537030a1ad29b202936425110744fe66fb.yml
3-
openapi_spec_hash: ea86343b5e9858a74e85da8ab2c532f6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a555f81249cb084f463dcefa4aba069f9341fdaf3dd6ac27d7f237fc90e8f488.yml
3+
openapi_spec_hash: 8e590296cd1a54b9508510b0c7a2c45a
44
config_hash: 5ea32de61ff42fcf5e66cff8d9e247ea

src/resources/beta/assistants.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,12 @@ export interface AssistantUpdateParams {
13371337
*/
13381338
model?:
13391339
| (string & {})
1340+
| 'gpt-4.1'
1341+
| 'gpt-4.1-mini'
1342+
| 'gpt-4.1-nano'
1343+
| 'gpt-4.1-2025-04-14'
1344+
| 'gpt-4.1-mini-2025-04-14'
1345+
| 'gpt-4.1-nano-2025-04-14'
13401346
| 'o3-mini'
13411347
| 'o3-mini-2025-01-31'
13421348
| 'o1'

src/resources/shared.ts

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ export type AllModels =
99
| 'computer-use-preview-2025-03-11';
1010

1111
export type ChatModel =
12+
| 'gpt-4.1'
13+
| 'gpt-4.1-mini'
14+
| 'gpt-4.1-nano'
15+
| 'gpt-4.1-2025-04-14'
16+
| 'gpt-4.1-mini-2025-04-14'
17+
| 'gpt-4.1-nano-2025-04-14'
1218
| 'o3-mini'
1319
| 'o3-mini-2025-01-31'
1420
| 'o1'

0 commit comments

Comments
 (0)