openai 6.45.0 → 6.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -0
- package/README.md +9 -2
- package/client.d.mts +1 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -0
- package/client.d.ts.map +1 -1
- package/client.js +11 -5
- package/client.js.map +1 -1
- package/client.mjs +11 -5
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +38 -6
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +38 -6
- package/core/streaming.mjs.map +1 -1
- package/core/uploads.d.mts +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.js +3 -1
- package/core/uploads.js.map +1 -1
- package/core/uploads.mjs +1 -0
- package/core/uploads.mjs.map +1 -1
- package/helpers/audio.d.mts.map +1 -1
- package/helpers/audio.d.ts.map +1 -1
- package/helpers/audio.js +16 -3
- package/helpers/audio.js.map +1 -1
- package/helpers/audio.mjs +17 -4
- package/helpers/audio.mjs.map +1 -1
- package/helpers/zod.d.mts +20 -7
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +20 -7
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +24 -12
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +24 -12
- package/helpers/zod.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/internal/uploads.d.mts +26 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +26 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +169 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +169 -2
- package/internal/uploads.mjs.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.mts +3 -3
- package/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts +3 -3
- package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/lib/AbstractChatCompletionRunner.js +18 -3
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +18 -3
- package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/lib/AssistantStream.d.mts.map +1 -1
- package/lib/AssistantStream.d.ts.map +1 -1
- package/lib/AssistantStream.js +4 -3
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs +4 -3
- package/lib/AssistantStream.mjs.map +1 -1
- package/lib/ChatCompletionRunner.d.mts +26 -2
- package/lib/ChatCompletionRunner.d.mts.map +1 -1
- package/lib/ChatCompletionRunner.d.ts +26 -2
- package/lib/ChatCompletionRunner.d.ts.map +1 -1
- package/lib/ChatCompletionRunner.js.map +1 -1
- package/lib/ChatCompletionRunner.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts +14 -1
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts +14 -1
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +75 -16
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +74 -16
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.mts +25 -2
- package/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.ts +25 -2
- package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.js +77 -0
- package/lib/ChatCompletionStreamingRunner.js.map +1 -1
- package/lib/ChatCompletionStreamingRunner.mjs +78 -1
- package/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
- package/lib/EventStream.d.mts +13 -0
- package/lib/EventStream.d.mts.map +1 -1
- package/lib/EventStream.d.ts +13 -0
- package/lib/EventStream.d.ts.map +1 -1
- package/lib/EventStream.js +107 -2
- package/lib/EventStream.js.map +1 -1
- package/lib/EventStream.mjs +107 -2
- package/lib/EventStream.mjs.map +1 -1
- package/lib/RunnableFunction.d.mts +38 -21
- package/lib/RunnableFunction.d.mts.map +1 -1
- package/lib/RunnableFunction.d.ts +38 -21
- package/lib/RunnableFunction.d.ts.map +1 -1
- package/lib/RunnableFunction.js.map +1 -1
- package/lib/RunnableFunction.mjs.map +1 -1
- package/lib/parser.d.mts +2 -2
- package/lib/parser.d.mts.map +1 -1
- package/lib/parser.d.ts +2 -2
- package/lib/parser.d.ts.map +1 -1
- package/lib/parser.js.map +1 -1
- package/lib/parser.mjs.map +1 -1
- package/lib/responses/ResponseAccumulator.d.mts +6 -1
- package/lib/responses/ResponseAccumulator.d.mts.map +1 -1
- package/lib/responses/ResponseAccumulator.d.ts +6 -1
- package/lib/responses/ResponseAccumulator.d.ts.map +1 -1
- package/lib/responses/ResponseAccumulator.js +1 -0
- package/lib/responses/ResponseAccumulator.js.map +1 -1
- package/lib/responses/ResponseAccumulator.mjs +1 -0
- package/lib/responses/ResponseAccumulator.mjs.map +1 -1
- package/lib/responses/ResponseInputItems.d.mts.map +1 -1
- package/lib/responses/ResponseInputItems.d.ts.map +1 -1
- package/lib/responses/ResponseInputItems.js +2 -0
- package/lib/responses/ResponseInputItems.js.map +1 -1
- package/lib/responses/ResponseInputItems.mjs +2 -0
- package/lib/responses/ResponseInputItems.mjs.map +1 -1
- package/lib/responses/ResponseStream.d.mts +6 -1
- package/lib/responses/ResponseStream.d.mts.map +1 -1
- package/lib/responses/ResponseStream.d.ts +6 -1
- package/lib/responses/ResponseStream.d.ts.map +1 -1
- package/lib/responses/ResponseStream.js +21 -0
- package/lib/responses/ResponseStream.js.map +1 -1
- package/lib/responses/ResponseStream.mjs +21 -0
- package/lib/responses/ResponseStream.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts +12 -0
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts +12 -0
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/beta/assistants.d.mts +12 -26
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts +12 -26
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/beta.d.mts +6 -1
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +6 -1
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +4 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +4 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -0
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -0
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +5 -3
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -0
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/responses/index.d.mts +6 -0
- package/resources/beta/responses/index.d.mts.map +1 -0
- package/resources/beta/responses/index.d.ts +6 -0
- package/resources/beta/responses/index.d.ts.map +1 -0
- package/resources/beta/responses/index.js +11 -0
- package/resources/beta/responses/index.js.map +1 -0
- package/resources/beta/responses/index.mjs +5 -0
- package/resources/beta/responses/index.mjs.map +1 -0
- package/resources/beta/responses/input-items.d.mts +69 -0
- package/resources/beta/responses/input-items.d.mts.map +1 -0
- package/resources/beta/responses/input-items.d.ts +69 -0
- package/resources/beta/responses/input-items.d.ts.map +1 -0
- package/resources/beta/responses/input-items.js +37 -0
- package/resources/beta/responses/input-items.js.map +1 -0
- package/resources/beta/responses/input-items.mjs +33 -0
- package/resources/beta/responses/input-items.mjs.map +1 -0
- package/resources/beta/responses/input-tokens.d.mts +191 -0
- package/resources/beta/responses/input-tokens.d.mts.map +1 -0
- package/resources/beta/responses/input-tokens.d.ts +191 -0
- package/resources/beta/responses/input-tokens.d.ts.map +1 -0
- package/resources/beta/responses/input-tokens.js +34 -0
- package/resources/beta/responses/input-tokens.js.map +1 -0
- package/resources/beta/responses/input-tokens.mjs +30 -0
- package/resources/beta/responses/input-tokens.mjs.map +1 -0
- package/resources/beta/responses/internal-base.d.mts +71 -0
- package/resources/beta/responses/internal-base.d.mts.map +1 -0
- package/resources/beta/responses/internal-base.d.ts +71 -0
- package/resources/beta/responses/internal-base.d.ts.map +1 -0
- package/resources/beta/responses/internal-base.js +48 -0
- package/resources/beta/responses/internal-base.js.map +1 -0
- package/resources/beta/responses/internal-base.mjs +42 -0
- package/resources/beta/responses/internal-base.mjs.map +1 -0
- package/resources/beta/responses/responses.d.mts +9986 -0
- package/resources/beta/responses/responses.d.mts.map +1 -0
- package/resources/beta/responses/responses.d.ts +9986 -0
- package/resources/beta/responses/responses.d.ts.map +1 -0
- package/resources/beta/responses/responses.js +121 -0
- package/resources/beta/responses/responses.js.map +1 -0
- package/resources/beta/responses/responses.mjs +116 -0
- package/resources/beta/responses/responses.mjs.map +1 -0
- package/resources/beta/responses/ws-base.d.mts +106 -0
- package/resources/beta/responses/ws-base.d.mts.map +1 -0
- package/resources/beta/responses/ws-base.d.ts +106 -0
- package/resources/beta/responses/ws-base.d.ts.map +1 -0
- package/resources/beta/responses/ws-base.js +476 -0
- package/resources/beta/responses/ws-base.js.map +1 -0
- package/resources/beta/responses/ws-base.mjs +472 -0
- package/resources/beta/responses/ws-base.mjs.map +1 -0
- package/resources/beta/responses/ws.d.mts +13 -0
- package/resources/beta/responses/ws.d.mts.map +1 -0
- package/resources/beta/responses/ws.d.ts +13 -0
- package/resources/beta/responses/ws.d.ts.map +1 -0
- package/resources/beta/responses/ws.js +31 -0
- package/resources/beta/responses/ws.js.map +1 -0
- package/resources/beta/responses/ws.mjs +26 -0
- package/resources/beta/responses/ws.mjs.map +1 -0
- package/resources/beta/responses.d.mts +2 -0
- package/resources/beta/responses.d.mts.map +1 -0
- package/resources/beta/responses.d.ts +2 -0
- package/resources/beta/responses.d.ts.map +1 -0
- package/resources/beta/responses.js +6 -0
- package/resources/beta/responses.js.map +1 -0
- package/resources/beta/responses.mjs +3 -0
- package/resources/beta/responses.mjs.map +1 -0
- package/resources/beta/threads/runs/runs.d.mts +6 -13
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +6 -13
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +170 -20
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +170 -20
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/completions.d.mts +4 -0
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +4 -0
- package/resources/completions.d.ts.map +1 -1
- package/resources/conversations/conversations.d.mts +19 -0
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +19 -0
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.mts +45 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +45 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/evals/runs/runs.d.mts +66 -143
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts +66 -143
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/graders/grader-models.d.mts +6 -13
- package/resources/graders/grader-models.d.mts.map +1 -1
- package/resources/graders/grader-models.d.ts +6 -13
- package/resources/graders/grader-models.d.ts.map +1 -1
- package/resources/realtime/calls.d.mts +1 -1
- package/resources/realtime/calls.d.mts.map +1 -1
- package/resources/realtime/calls.d.ts +1 -1
- package/resources/realtime/calls.d.ts.map +1 -1
- package/resources/realtime/client-secrets.d.mts +5 -1
- package/resources/realtime/client-secrets.d.mts.map +1 -1
- package/resources/realtime/client-secrets.d.ts +5 -1
- package/resources/realtime/client-secrets.d.ts.map +1 -1
- package/resources/realtime/realtime.d.mts +9 -1
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +9 -1
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/responses/input-tokens.d.mts +7 -1
- package/resources/responses/input-tokens.d.mts.map +1 -1
- package/resources/responses/input-tokens.d.ts +7 -1
- package/resources/responses/input-tokens.d.ts.map +1 -1
- package/resources/responses/responses.d.mts +819 -26
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +819 -26
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +20 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +20 -28
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +13 -5
- package/src/core/streaming.ts +36 -8
- package/src/core/uploads.ts +6 -1
- package/src/helpers/audio.ts +18 -4
- package/src/helpers/zod.ts +62 -23
- package/src/index.ts +1 -1
- package/src/internal/uploads.ts +214 -4
- package/src/lib/AbstractChatCompletionRunner.ts +32 -9
- package/src/lib/AssistantStream.ts +4 -3
- package/src/lib/ChatCompletionRunner.ts +46 -6
- package/src/lib/ChatCompletionStream.ts +115 -17
- package/src/lib/ChatCompletionStreamingRunner.ts +144 -7
- package/src/lib/EventStream.ts +114 -4
- package/src/lib/RunnableFunction.ts +60 -31
- package/src/lib/parser.ts +4 -0
- package/src/lib/responses/ResponseAccumulator.ts +10 -1
- package/src/lib/responses/ResponseInputItems.ts +2 -0
- package/src/lib/responses/ResponseStream.ts +29 -1
- package/src/resources/admin/organization/projects/api-keys.ts +15 -1
- package/src/resources/beta/assistants.ts +12 -26
- package/src/resources/beta/beta.ts +330 -2
- package/src/resources/beta/index.ts +163 -0
- package/src/resources/beta/responses/index.ts +169 -0
- package/src/resources/beta/responses/input-items.ts +105 -0
- package/src/resources/beta/responses/input-tokens.ts +245 -0
- package/src/resources/beta/responses/internal-base.ts +117 -0
- package/src/resources/beta/responses/responses.ts +12633 -0
- package/src/resources/beta/responses/ws-base.ts +615 -0
- package/src/resources/beta/responses/ws.ts +38 -0
- package/src/resources/beta/responses.ts +3 -0
- package/src/resources/beta/threads/runs/runs.ts +6 -13
- package/src/resources/chat/completions/completions.ts +237 -23
- package/src/resources/completions.ts +5 -0
- package/src/resources/conversations/conversations.ts +21 -0
- package/src/resources/conversations/items.ts +56 -0
- package/src/resources/evals/runs/runs.ts +66 -143
- package/src/resources/graders/grader-models.ts +6 -13
- package/src/resources/realtime/calls.ts +2 -0
- package/src/resources/realtime/client-secrets.ts +7 -0
- package/src/resources/realtime/realtime.ts +12 -0
- package/src/resources/responses/input-tokens.ts +8 -0
- package/src/resources/responses/responses.ts +953 -17
- package/src/resources/shared.ts +23 -27
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -305,19 +305,12 @@ export namespace CreateEvalCompletionsRunDataSource {
|
|
|
305
305
|
max_completion_tokens?: number;
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
|
-
* Constrains effort on reasoning for
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
315
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
316
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
317
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
318
|
-
* support `none`.
|
|
319
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
320
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
308
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
309
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
310
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
311
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
312
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
313
|
+
* model-specific support.
|
|
321
314
|
*/
|
|
322
315
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
323
316
|
|
|
@@ -614,19 +607,12 @@ export namespace RunCreateResponse {
|
|
|
614
607
|
model?: string | null;
|
|
615
608
|
|
|
616
609
|
/**
|
|
617
|
-
* Constrains effort on reasoning for
|
|
618
|
-
*
|
|
619
|
-
*
|
|
620
|
-
*
|
|
621
|
-
*
|
|
622
|
-
*
|
|
623
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
624
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
625
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
626
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
627
|
-
* support `none`.
|
|
628
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
629
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
610
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
611
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
612
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
613
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
614
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
615
|
+
* model-specific support.
|
|
630
616
|
*/
|
|
631
617
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
632
618
|
|
|
@@ -767,19 +753,12 @@ export namespace RunCreateResponse {
|
|
|
767
753
|
max_completion_tokens?: number;
|
|
768
754
|
|
|
769
755
|
/**
|
|
770
|
-
* Constrains effort on reasoning for
|
|
771
|
-
*
|
|
772
|
-
*
|
|
773
|
-
*
|
|
774
|
-
*
|
|
775
|
-
*
|
|
776
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
777
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
778
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
779
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
780
|
-
* support `none`.
|
|
781
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
782
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
756
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
757
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
758
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
759
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
760
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
761
|
+
* model-specific support.
|
|
783
762
|
*/
|
|
784
763
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
785
764
|
|
|
@@ -1117,19 +1096,12 @@ export namespace RunRetrieveResponse {
|
|
|
1117
1096
|
model?: string | null;
|
|
1118
1097
|
|
|
1119
1098
|
/**
|
|
1120
|
-
* Constrains effort on reasoning for
|
|
1121
|
-
*
|
|
1122
|
-
*
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1125
|
-
*
|
|
1126
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1127
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1128
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
1129
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1130
|
-
* support `none`.
|
|
1131
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1132
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1099
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1100
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1101
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
1102
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
1103
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1104
|
+
* model-specific support.
|
|
1133
1105
|
*/
|
|
1134
1106
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
1135
1107
|
|
|
@@ -1270,19 +1242,12 @@ export namespace RunRetrieveResponse {
|
|
|
1270
1242
|
max_completion_tokens?: number;
|
|
1271
1243
|
|
|
1272
1244
|
/**
|
|
1273
|
-
* Constrains effort on reasoning for
|
|
1274
|
-
*
|
|
1275
|
-
*
|
|
1276
|
-
*
|
|
1277
|
-
*
|
|
1278
|
-
*
|
|
1279
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1280
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1281
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
1282
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1283
|
-
* support `none`.
|
|
1284
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1285
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1245
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1246
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1247
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
1248
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
1249
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1250
|
+
* model-specific support.
|
|
1286
1251
|
*/
|
|
1287
1252
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
1288
1253
|
|
|
@@ -1617,19 +1582,12 @@ export namespace RunListResponse {
|
|
|
1617
1582
|
model?: string | null;
|
|
1618
1583
|
|
|
1619
1584
|
/**
|
|
1620
|
-
* Constrains effort on reasoning for
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1627
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1628
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
1629
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1630
|
-
* support `none`.
|
|
1631
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1632
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1585
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1586
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1587
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
1588
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
1589
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1590
|
+
* model-specific support.
|
|
1633
1591
|
*/
|
|
1634
1592
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
1635
1593
|
|
|
@@ -1770,19 +1728,12 @@ export namespace RunListResponse {
|
|
|
1770
1728
|
max_completion_tokens?: number;
|
|
1771
1729
|
|
|
1772
1730
|
/**
|
|
1773
|
-
* Constrains effort on reasoning for
|
|
1774
|
-
*
|
|
1775
|
-
*
|
|
1776
|
-
*
|
|
1777
|
-
*
|
|
1778
|
-
*
|
|
1779
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
1780
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
1781
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
1782
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
1783
|
-
* support `none`.
|
|
1784
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1785
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
1731
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
1732
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
1733
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
1734
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
1735
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
1736
|
+
* model-specific support.
|
|
1786
1737
|
*/
|
|
1787
1738
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
1788
1739
|
|
|
@@ -2128,19 +2079,12 @@ export namespace RunCancelResponse {
|
|
|
2128
2079
|
model?: string | null;
|
|
2129
2080
|
|
|
2130
2081
|
/**
|
|
2131
|
-
* Constrains effort on reasoning for
|
|
2132
|
-
*
|
|
2133
|
-
*
|
|
2134
|
-
*
|
|
2135
|
-
*
|
|
2136
|
-
*
|
|
2137
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
2138
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
2139
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
2140
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
2141
|
-
* support `none`.
|
|
2142
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
2143
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
2082
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
2083
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
2084
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
2085
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
2086
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
2087
|
+
* model-specific support.
|
|
2144
2088
|
*/
|
|
2145
2089
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
2146
2090
|
|
|
@@ -2281,19 +2225,12 @@ export namespace RunCancelResponse {
|
|
|
2281
2225
|
max_completion_tokens?: number;
|
|
2282
2226
|
|
|
2283
2227
|
/**
|
|
2284
|
-
* Constrains effort on reasoning for
|
|
2285
|
-
*
|
|
2286
|
-
*
|
|
2287
|
-
*
|
|
2288
|
-
*
|
|
2289
|
-
*
|
|
2290
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
2291
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
2292
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
2293
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
2294
|
-
* support `none`.
|
|
2295
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
2296
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
2228
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
2229
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
2230
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
2231
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
2232
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
2233
|
+
* model-specific support.
|
|
2297
2234
|
*/
|
|
2298
2235
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
2299
2236
|
|
|
@@ -2578,19 +2515,12 @@ export namespace RunCreateParams {
|
|
|
2578
2515
|
model?: string | null;
|
|
2579
2516
|
|
|
2580
2517
|
/**
|
|
2581
|
-
* Constrains effort on reasoning for
|
|
2582
|
-
*
|
|
2583
|
-
*
|
|
2584
|
-
*
|
|
2585
|
-
*
|
|
2586
|
-
*
|
|
2587
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
2588
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
2589
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
2590
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
2591
|
-
* support `none`.
|
|
2592
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
2593
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
2518
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
2519
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
2520
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
2521
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
2522
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
2523
|
+
* model-specific support.
|
|
2594
2524
|
*/
|
|
2595
2525
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
2596
2526
|
|
|
@@ -2731,19 +2661,12 @@ export namespace RunCreateParams {
|
|
|
2731
2661
|
max_completion_tokens?: number;
|
|
2732
2662
|
|
|
2733
2663
|
/**
|
|
2734
|
-
* Constrains effort on reasoning for
|
|
2735
|
-
*
|
|
2736
|
-
*
|
|
2737
|
-
*
|
|
2738
|
-
*
|
|
2739
|
-
*
|
|
2740
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
2741
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
2742
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
2743
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
2744
|
-
* support `none`.
|
|
2745
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
2746
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
2664
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
2665
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
2666
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
2667
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
2668
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
2669
|
+
* model-specific support.
|
|
2747
2670
|
*/
|
|
2748
2671
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
2749
2672
|
|
|
@@ -331,19 +331,12 @@ export namespace ScoreModelGrader {
|
|
|
331
331
|
max_completions_tokens?: number | null;
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
|
-
* Constrains effort on reasoning for
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
|
|
341
|
-
* reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
|
|
342
|
-
* calls are supported for all reasoning values in gpt-5.1.
|
|
343
|
-
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
|
|
344
|
-
* support `none`.
|
|
345
|
-
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
346
|
-
* - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
|
|
334
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
335
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
336
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
337
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
338
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
339
|
+
* model-specific support.
|
|
347
340
|
*/
|
|
348
341
|
reasoning_effort?: Shared.ReasoningEffort | null;
|
|
349
342
|
|
|
@@ -135,6 +135,8 @@ export interface CallAcceptParams {
|
|
|
135
135
|
| 'gpt-realtime'
|
|
136
136
|
| 'gpt-realtime-1.5'
|
|
137
137
|
| 'gpt-realtime-2'
|
|
138
|
+
| 'gpt-realtime-2.1'
|
|
139
|
+
| 'gpt-realtime-2.1-mini'
|
|
138
140
|
| 'gpt-realtime-2025-08-28'
|
|
139
141
|
| 'gpt-4o-realtime-preview'
|
|
140
142
|
| 'gpt-4o-realtime-preview-2024-10-01'
|
|
@@ -107,6 +107,8 @@ export interface RealtimeSessionCreateResponse {
|
|
|
107
107
|
| 'gpt-realtime'
|
|
108
108
|
| 'gpt-realtime-1.5'
|
|
109
109
|
| 'gpt-realtime-2'
|
|
110
|
+
| 'gpt-realtime-2.1'
|
|
111
|
+
| 'gpt-realtime-2.1-mini'
|
|
110
112
|
| 'gpt-realtime-2025-08-28'
|
|
111
113
|
| 'gpt-4o-realtime-preview'
|
|
112
114
|
| 'gpt-4o-realtime-preview-2024-10-01'
|
|
@@ -407,6 +409,11 @@ export namespace RealtimeSessionCreateResponse {
|
|
|
407
409
|
*/
|
|
408
410
|
type: 'mcp';
|
|
409
411
|
|
|
412
|
+
/**
|
|
413
|
+
* The tool invocation context(s).
|
|
414
|
+
*/
|
|
415
|
+
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
416
|
+
|
|
410
417
|
/**
|
|
411
418
|
* List of allowed tool names or a filter object.
|
|
412
419
|
*/
|
|
@@ -2222,6 +2222,11 @@ export interface RealtimeResponseCreateMcpTool {
|
|
|
2222
2222
|
*/
|
|
2223
2223
|
type: 'mcp';
|
|
2224
2224
|
|
|
2225
|
+
/**
|
|
2226
|
+
* The tool invocation context(s).
|
|
2227
|
+
*/
|
|
2228
|
+
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
2229
|
+
|
|
2225
2230
|
/**
|
|
2226
2231
|
* List of allowed tool names or a filter object.
|
|
2227
2232
|
*/
|
|
@@ -3146,6 +3151,8 @@ export interface RealtimeSessionCreateRequest {
|
|
|
3146
3151
|
| 'gpt-realtime'
|
|
3147
3152
|
| 'gpt-realtime-1.5'
|
|
3148
3153
|
| 'gpt-realtime-2'
|
|
3154
|
+
| 'gpt-realtime-2.1'
|
|
3155
|
+
| 'gpt-realtime-2.1-mini'
|
|
3149
3156
|
| 'gpt-realtime-2025-08-28'
|
|
3150
3157
|
| 'gpt-4o-realtime-preview'
|
|
3151
3158
|
| 'gpt-4o-realtime-preview-2024-10-01'
|
|
@@ -3269,6 +3276,11 @@ export namespace RealtimeToolsConfigUnion {
|
|
|
3269
3276
|
*/
|
|
3270
3277
|
type: 'mcp';
|
|
3271
3278
|
|
|
3279
|
+
/**
|
|
3280
|
+
* The tool invocation context(s).
|
|
3281
|
+
*/
|
|
3282
|
+
allowed_callers?: Array<'direct' | 'programmatic'> | null;
|
|
3283
|
+
|
|
3272
3284
|
/**
|
|
3273
3285
|
* List of allowed tool names or a filter object.
|
|
3274
3286
|
*/
|
|
@@ -112,6 +112,7 @@ export interface InputTokenCountParams {
|
|
|
112
112
|
| ResponsesAPI.ToolChoiceFunction
|
|
113
113
|
| ResponsesAPI.ToolChoiceMcp
|
|
114
114
|
| ResponsesAPI.ToolChoiceCustom
|
|
115
|
+
| InputTokenCountParams.SpecificProgrammaticToolCallingParam
|
|
115
116
|
| ResponsesAPI.ToolChoiceApplyPatch
|
|
116
117
|
| ResponsesAPI.ToolChoiceShell
|
|
117
118
|
| null;
|
|
@@ -166,6 +167,13 @@ export namespace InputTokenCountParams {
|
|
|
166
167
|
*/
|
|
167
168
|
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
168
169
|
}
|
|
170
|
+
|
|
171
|
+
export interface SpecificProgrammaticToolCallingParam {
|
|
172
|
+
/**
|
|
173
|
+
* The tool to call. Always `programmatic_tool_calling`.
|
|
174
|
+
*/
|
|
175
|
+
type: 'programmatic_tool_calling';
|
|
176
|
+
}
|
|
169
177
|
}
|
|
170
178
|
|
|
171
179
|
export declare namespace InputTokens {
|