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 11configured_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 22
33Types:
44
5+ - <code ><a href =" ./src/resources/shared.ts " >AllModels</a ></code >
56- <code ><a href =" ./src/resources/shared.ts " >ChatModel</a ></code >
67- <code ><a href =" ./src/resources/shared.ts " >ComparisonFilter</a ></code >
78- <code ><a href =" ./src/resources/shared.ts " >CompoundFilter</a ></code >
1415- <code ><a href =" ./src/resources/shared.ts " >ResponseFormatJSONObject</a ></code >
1516- <code ><a href =" ./src/resources/shared.ts " >ResponseFormatJSONSchema</a ></code >
1617- <code ><a href =" ./src/resources/shared.ts " >ResponseFormatText</a ></code >
18+ - <code ><a href =" ./src/resources/shared.ts " >ResponsesModel</a ></code >
1719
1820# Completions
1921
Original file line number Diff line number Diff line change @@ -508,6 +508,7 @@ export declare namespace OpenAI {
508508
509509 export { Responses as Responses } ;
510510
511+ export type AllModels = API . AllModels ;
511512 export type ChatModel = API . ChatModel ;
512513 export type ComparisonFilter = API . ComparisonFilter ;
513514 export type CompoundFilter = API . CompoundFilter ;
@@ -520,6 +521,7 @@ export declare namespace OpenAI {
520521 export type ResponseFormatJSONObject = API . ResponseFormatJSONObject ;
521522 export type ResponseFormatJSONSchema = API . ResponseFormatJSONSchema ;
522523 export type ResponseFormatText = API . ResponseFormatText ;
524+ export type ResponsesModel = API . ResponsesModel ;
523525}
524526
525527// ---------------------- Azure ----------------------
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ export interface Response {
327327 * [model guide](https://platform.openai.com/docs/models) to browse and compare
328328 * available models.
329329 */
330- model : ( string & { } ) | Shared . ChatModel ;
330+ model : Shared . ResponsesModel ;
331331
332332 /**
333333 * The object type of this resource - always set to `response`.
@@ -1481,7 +1481,7 @@ export interface ResponseFunctionToolCall {
14811481 */
14821482export interface ResponseFunctionToolCallItem extends ResponseFunctionToolCall {
14831483 /**
1484- * The unique ID of the function call tool output .
1484+ * The unique ID of the function tool call .
14851485 */
14861486 id : string ;
14871487}
@@ -2679,7 +2679,7 @@ export interface ResponseCreateParamsBase {
26792679 * [model guide](https://platform.openai.com/docs/models) to browse and compare
26802680 * available models.
26812681 */
2682- model : ( string & { } ) | Shared . ChatModel ;
2682+ model : Shared . ResponsesModel ;
26832683
26842684 /**
26852685 * Specify additional output data to include in the model response. Currently
Original file line number Diff line number Diff line change 11// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
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+
313export type ChatModel =
414 | 'o3-mini'
515 | 'o3-mini-2025-01-31'
@@ -9,11 +19,6 @@ export type ChatModel =
919 | 'o1-preview-2024-09-12'
1020 | 'o1-mini'
1121 | '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'
1722 | 'gpt-4o'
1823 | 'gpt-4o-2024-11-20'
1924 | 'gpt-4o-2024-08-06'
@@ -23,6 +28,10 @@ export type ChatModel =
2328 | 'gpt-4o-audio-preview-2024-12-17'
2429 | 'gpt-4o-mini-audio-preview'
2530 | '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'
2635 | 'chatgpt-4o-latest'
2736 | 'gpt-4o-mini'
2837 | 'gpt-4o-mini-2024-07-18'
@@ -265,3 +274,11 @@ export interface ResponseFormatText {
265274 */
266275 type : 'text' ;
267276}
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