File tree Expand file tree Collapse file tree 5 files changed +30
-9
lines changed Expand file tree Collapse file tree 5 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 81
2
- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-f3bce04386c4fcfd5037e0477fbaa39010003fd1558eb5185fe4a71dd6a05fdd .yml
2
+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-b26121d5df6eb5d3032a45a267473798b15fcfec76dd44a3256cf1238be05fa4 .yml
Original file line number Diff line number Diff line change 2
2
3
3
Types:
4
4
5
+ - <code ><a href =" ./src/resources/shared.ts " >AllModels</a ></code >
5
6
- <code ><a href =" ./src/resources/shared.ts " >ChatModel</a ></code >
6
7
- <code ><a href =" ./src/resources/shared.ts " >ComparisonFilter</a ></code >
7
8
- <code ><a href =" ./src/resources/shared.ts " >CompoundFilter</a ></code >
14
15
- <code ><a href =" ./src/resources/shared.ts " >ResponseFormatJSONObject</a ></code >
15
16
- <code ><a href =" ./src/resources/shared.ts " >ResponseFormatJSONSchema</a ></code >
16
17
- <code ><a href =" ./src/resources/shared.ts " >ResponseFormatText</a ></code >
18
+ - <code ><a href =" ./src/resources/shared.ts " >ResponsesModel</a ></code >
17
19
18
20
# Completions
19
21
Original file line number Diff line number Diff line change @@ -508,6 +508,7 @@ export declare namespace OpenAI {
508
508
509
509
export { Responses as Responses } ;
510
510
511
+ export type AllModels = API . AllModels ;
511
512
export type ChatModel = API . ChatModel ;
512
513
export type ComparisonFilter = API . ComparisonFilter ;
513
514
export type CompoundFilter = API . CompoundFilter ;
@@ -520,6 +521,7 @@ export declare namespace OpenAI {
520
521
export type ResponseFormatJSONObject = API . ResponseFormatJSONObject ;
521
522
export type ResponseFormatJSONSchema = API . ResponseFormatJSONSchema ;
522
523
export type ResponseFormatText = API . ResponseFormatText ;
524
+ export type ResponsesModel = API . ResponsesModel ;
523
525
}
524
526
525
527
export { toFile , fileFromPath } from './uploads' ;
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ export interface Response {
263
263
* [model guide](https://platform.openai.com/docs/models) to browse and compare
264
264
* available models.
265
265
*/
266
- model : ( string & { } ) | Shared . ChatModel ;
266
+ model : Shared . ResponsesModel ;
267
267
268
268
/**
269
269
* The object type of this resource - always set to `response`.
@@ -1417,7 +1417,7 @@ export interface ResponseFunctionToolCall {
1417
1417
*/
1418
1418
export interface ResponseFunctionToolCallItem extends ResponseFunctionToolCall {
1419
1419
/**
1420
- * The unique ID of the function call tool output .
1420
+ * The unique ID of the function tool call .
1421
1421
*/
1422
1422
id : string ;
1423
1423
}
@@ -2615,7 +2615,7 @@ export interface ResponseCreateParamsBase {
2615
2615
* [model guide](https://platform.openai.com/docs/models) to browse and compare
2616
2616
* available models.
2617
2617
*/
2618
- model : ( string & { } ) | Shared . ChatModel ;
2618
+ model : Shared . ResponsesModel ;
2619
2619
2620
2620
/**
2621
2621
* Specify additional output data to include in the model response. Currently
Original file line number Diff line number Diff line change 1
1
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
+ export type AllModels =
4
+ | string
5
+ | ChatModel
6
+ | string
7
+ | ChatModel
8
+ | 'o1-pro'
9
+ | 'o1-pro-2025-03-19'
10
+ | 'computer-use-preview'
11
+ | 'computer-use-preview-2025-03-11' ;
12
+
3
13
export type ChatModel =
4
14
| 'o3-mini'
5
15
| 'o3-mini-2025-01-31'
@@ -9,11 +19,6 @@ export type ChatModel =
9
19
| 'o1-preview-2024-09-12'
10
20
| 'o1-mini'
11
21
| 'o1-mini-2024-09-12'
12
- | 'computer-use-preview'
13
- | 'computer-use-preview-2025-02-04'
14
- | 'computer-use-preview-2025-03-11'
15
- | 'gpt-4.5-preview'
16
- | 'gpt-4.5-preview-2025-02-27'
17
22
| 'gpt-4o'
18
23
| 'gpt-4o-2024-11-20'
19
24
| 'gpt-4o-2024-08-06'
@@ -23,6 +28,10 @@ export type ChatModel =
23
28
| 'gpt-4o-audio-preview-2024-12-17'
24
29
| 'gpt-4o-mini-audio-preview'
25
30
| 'gpt-4o-mini-audio-preview-2024-12-17'
31
+ | 'gpt-4o-search-preview'
32
+ | 'gpt-4o-mini-search-preview'
33
+ | 'gpt-4o-search-preview-2025-03-11'
34
+ | 'gpt-4o-mini-search-preview-2025-03-11'
26
35
| 'chatgpt-4o-latest'
27
36
| 'gpt-4o-mini'
28
37
| 'gpt-4o-mini-2024-07-18'
@@ -265,3 +274,11 @@ export interface ResponseFormatText {
265
274
*/
266
275
type : 'text' ;
267
276
}
277
+
278
+ export type ResponsesModel =
279
+ | ( string & { } )
280
+ | ChatModel
281
+ | 'o1-pro'
282
+ | 'o1-pro-2025-03-19'
283
+ | 'computer-use-preview'
284
+ | 'computer-use-preview-2025-03-11' ;
You can’t perform that action at this time.
0 commit comments