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 @@ -1022,6 +1022,7 @@ export declare namespace OpenAI {
1022
1022
1023
1023
export { Responses as Responses } ;
1024
1024
1025
+ export type AllModels = API . AllModels ;
1025
1026
export type ChatModel = API . ChatModel ;
1026
1027
export type ComparisonFilter = API . ComparisonFilter ;
1027
1028
export type CompoundFilter = API . CompoundFilter ;
@@ -1034,4 +1035,5 @@ export declare namespace OpenAI {
1034
1035
export type ResponseFormatJSONObject = API . ResponseFormatJSONObject ;
1035
1036
export type ResponseFormatJSONSchema = API . ResponseFormatJSONSchema ;
1036
1037
export type ResponseFormatText = API . ResponseFormatText ;
1038
+ export type ResponsesModel = API . ResponsesModel ;
1037
1039
}
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ export interface Response {
255
255
* [model guide](https://platform.openai.com/docs/models) to browse and compare
256
256
* available models.
257
257
*/
258
- model : ( string & { } ) | Shared . ChatModel ;
258
+ model : Shared . ResponsesModel ;
259
259
260
260
/**
261
261
* The object type of this resource - always set to `response`.
@@ -1409,7 +1409,7 @@ export interface ResponseFunctionToolCall {
1409
1409
*/
1410
1410
export interface ResponseFunctionToolCallItem extends ResponseFunctionToolCall {
1411
1411
/**
1412
- * The unique ID of the function call tool output .
1412
+ * The unique ID of the function tool call .
1413
1413
*/
1414
1414
id : string ;
1415
1415
}
@@ -2607,7 +2607,7 @@ export interface ResponseCreateParamsBase {
2607
2607
* [model guide](https://platform.openai.com/docs/models) to browse and compare
2608
2608
* available models.
2609
2609
*/
2610
- model : ( string & { } ) | Shared . ChatModel ;
2610
+ model : Shared . ResponsesModel ;
2611
2611
2612
2612
/**
2613
2613
* 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