openai 7.12.1 → 7.13.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 +7 -0
- package/package.json +1 -1
- package/resources/admin/organization/audit-logs.d.mts +1 -1
- package/resources/admin/organization/audit-logs.d.ts +1 -1
- package/resources/admin/organization/projects/api-keys.d.mts +5 -0
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/resources/admin/organization/projects/api-keys.d.ts +5 -0
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +2 -2
- package/resources/admin/organization/projects/projects.d.ts +2 -2
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +13 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +13 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/audio/speech.d.mts +3 -2
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts +3 -2
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/transcriptions.d.mts +10 -10
- package/resources/audio/transcriptions.d.ts +10 -10
- package/resources/audio/translations.d.mts +1 -1
- package/resources/audio/translations.d.ts +1 -1
- package/resources/batches.d.mts +6 -5
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +6 -5
- package/resources/batches.d.ts.map +1 -1
- package/resources/beta/assistants.d.mts +143 -147
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts +143 -147
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/responses/input-tokens.d.mts +11 -11
- package/resources/beta/responses/input-tokens.d.ts +11 -11
- package/resources/beta/responses/responses.d.mts +181 -170
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +181 -170
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js +3 -3
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs +3 -3
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts +29 -23
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts +29 -23
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts +39 -35
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +39 -35
- 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/beta/threads/runs/steps.d.mts +14 -15
- package/resources/beta/threads/runs/steps.d.mts.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts +14 -15
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/threads.d.mts +53 -50
- package/resources/beta/threads/threads.d.mts.map +1 -1
- package/resources/beta/threads/threads.d.ts +53 -50
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +89 -81
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +89 -81
- 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 +15 -14
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +15 -14
- package/resources/completions.d.ts.map +1 -1
- package/resources/content-provenance-checks.d.mts +1 -1
- package/resources/content-provenance-checks.d.ts +1 -1
- package/resources/content-provenance-checks.js +1 -1
- package/resources/content-provenance-checks.mjs +1 -1
- package/resources/conversations/items.d.mts +3 -3
- package/resources/conversations/items.d.ts +3 -3
- package/resources/embeddings.d.mts +6 -6
- package/resources/embeddings.d.ts +6 -6
- package/resources/evals/evals.d.mts +1 -1
- package/resources/evals/evals.d.ts +1 -1
- package/resources/evals/evals.js +1 -1
- package/resources/evals/evals.mjs +1 -1
- package/resources/evals/runs/runs.d.mts +62 -57
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts +62 -57
- 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/files.d.mts +5 -5
- package/resources/files.d.ts +5 -5
- package/resources/files.js +5 -5
- package/resources/files.mjs +5 -5
- package/resources/fine-tuning/alpha/graders.d.mts +5 -4
- package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.ts +5 -4
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts +8 -4
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts +8 -4
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +8 -4
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +8 -4
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts +13 -12
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +13 -12
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +2 -2
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +2 -2
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/graders/grader-models.d.mts +1 -1
- package/resources/graders/grader-models.d.ts +1 -1
- package/resources/images.d.mts +10 -10
- package/resources/images.d.ts +10 -10
- package/resources/moderations.d.mts +5 -4
- package/resources/moderations.d.mts.map +1 -1
- package/resources/moderations.d.ts +5 -4
- package/resources/moderations.d.ts.map +1 -1
- package/resources/moderations.js +2 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +2 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts +1 -1
- package/resources/realtime/calls.d.ts +1 -1
- package/resources/realtime/client-secrets.d.mts +4 -4
- package/resources/realtime/client-secrets.d.ts +4 -4
- package/resources/realtime/client-secrets.js +1 -1
- package/resources/realtime/client-secrets.mjs +1 -1
- package/resources/realtime/realtime.d.mts +16 -16
- package/resources/realtime/realtime.d.ts +16 -16
- package/resources/responses/input-tokens.d.mts +9 -9
- package/resources/responses/input-tokens.d.ts +9 -9
- package/resources/responses/responses.d.mts +175 -164
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +175 -164
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +3 -3
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +3 -3
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +12 -12
- package/resources/shared.d.ts +12 -12
- package/resources/uploads/parts.d.mts +5 -4
- package/resources/uploads/parts.d.mts.map +1 -1
- package/resources/uploads/parts.d.ts +5 -4
- package/resources/uploads/parts.d.ts.map +1 -1
- package/resources/uploads/parts.js +5 -4
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +5 -4
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.mts +11 -11
- package/resources/uploads/uploads.d.ts +11 -11
- package/resources/uploads/uploads.js +9 -9
- package/resources/uploads/uploads.mjs +9 -9
- package/resources/vector-stores/file-batches.d.mts +11 -11
- package/resources/vector-stores/file-batches.d.ts +11 -11
- package/resources/vector-stores/files.d.mts +8 -8
- package/resources/vector-stores/files.d.ts +8 -8
- package/resources/vector-stores/files.js +3 -3
- package/resources/vector-stores/files.mjs +3 -3
- package/resources/vector-stores/vector-stores.d.mts +3 -3
- package/resources/vector-stores/vector-stores.d.ts +3 -3
- package/resources/webhooks/webhooks.d.mts +6 -2
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +6 -2
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/src/resources/admin/organization/audit-logs.ts +1 -1
- package/src/resources/admin/organization/projects/api-keys.ts +6 -0
- package/src/resources/admin/organization/projects/projects.ts +2 -2
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +15 -0
- package/src/resources/audio/speech.ts +3 -2
- package/src/resources/audio/transcriptions.ts +10 -10
- package/src/resources/audio/translations.ts +1 -1
- package/src/resources/batches.ts +6 -5
- package/src/resources/beta/assistants.ts +143 -147
- package/src/resources/beta/responses/input-tokens.ts +11 -11
- package/src/resources/beta/responses/responses.ts +181 -170
- package/src/resources/beta/threads/messages.ts +29 -23
- package/src/resources/beta/threads/runs/runs.ts +39 -35
- package/src/resources/beta/threads/runs/steps.ts +14 -15
- package/src/resources/beta/threads/threads.ts +53 -50
- package/src/resources/chat/completions/completions.ts +89 -81
- package/src/resources/completions.ts +15 -14
- package/src/resources/content-provenance-checks.ts +1 -1
- package/src/resources/conversations/items.ts +3 -3
- package/src/resources/embeddings.ts +6 -6
- package/src/resources/evals/evals.ts +1 -1
- package/src/resources/evals/runs/runs.ts +62 -57
- package/src/resources/files.ts +5 -5
- package/src/resources/fine-tuning/alpha/graders.ts +5 -4
- package/src/resources/fine-tuning/checkpoints/permissions.ts +8 -4
- package/src/resources/fine-tuning/jobs/jobs.ts +13 -12
- package/src/resources/graders/grader-models.ts +1 -1
- package/src/resources/images.ts +10 -10
- package/src/resources/moderations.ts +5 -4
- package/src/resources/realtime/calls.ts +1 -1
- package/src/resources/realtime/client-secrets.ts +4 -4
- package/src/resources/realtime/realtime.ts +16 -16
- package/src/resources/responses/input-tokens.ts +9 -9
- package/src/resources/responses/responses.ts +175 -164
- package/src/resources/shared.ts +12 -12
- package/src/resources/uploads/parts.ts +5 -4
- package/src/resources/uploads/uploads.ts +11 -11
- package/src/resources/vector-stores/file-batches.ts +11 -11
- package/src/resources/vector-stores/files.ts +8 -8
- package/src/resources/vector-stores/vector-stores.ts +3 -3
- package/src/resources/webhooks/webhooks.ts +6 -2
- 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
|
@@ -10,7 +10,8 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
10
10
|
export class Moderations extends APIResource {
|
|
11
11
|
/**
|
|
12
12
|
* Classifies if text and/or image inputs are potentially harmful. Learn more in
|
|
13
|
-
* the
|
|
13
|
+
* the
|
|
14
|
+
* [moderation guide](https://developers.openai.com/api/docs/guides/moderation).
|
|
14
15
|
*/
|
|
15
16
|
create(body: ModerationCreateParams, options?: RequestOptions): APIPromise<ModerationCreateResponse> {
|
|
16
17
|
return this._client.post('/moderations', { body, ...options, __security: { bearerAuth: true } });
|
|
@@ -350,9 +351,9 @@ export interface ModerationCreateParams {
|
|
|
350
351
|
|
|
351
352
|
/**
|
|
352
353
|
* The content moderation model you would like to use. Learn more in
|
|
353
|
-
* [the moderation guide](https://
|
|
354
|
-
* learn about available models
|
|
355
|
-
* [here](https://
|
|
354
|
+
* [the moderation guide](https://developers.openai.com/api/docs/guides/moderation),
|
|
355
|
+
* and learn about available models
|
|
356
|
+
* [here](https://developers.openai.com/api/docs/guides/moderation).
|
|
356
357
|
*/
|
|
357
358
|
model?: (string & {}) | ModerationModel;
|
|
358
359
|
}
|
|
@@ -213,7 +213,7 @@ export interface CallAcceptParams {
|
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
215
|
* Reference to a prompt template and its variables.
|
|
216
|
-
* [Learn more](https://
|
|
216
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
|
|
217
217
|
*/
|
|
218
218
|
prompt?: ResponsesAPI.ResponsePrompt | null;
|
|
219
219
|
|
|
@@ -20,7 +20,7 @@ export class ClientSecrets extends APIResource {
|
|
|
20
20
|
* will be applied to any sessions created using that client secret, but these can
|
|
21
21
|
* also be overridden by the client connection.
|
|
22
22
|
*
|
|
23
|
-
* [Learn more about authentication with client secrets over WebRTC](https://
|
|
23
|
+
* [Learn more about authentication with client secrets over WebRTC](https://developers.openai.com/api/docs/guides/realtime-webrtc).
|
|
24
24
|
*
|
|
25
25
|
* Returns the created client secret and the effective session object. The client
|
|
26
26
|
* secret is a string that looks like `ek_1234`.
|
|
@@ -134,7 +134,7 @@ export interface RealtimeSessionCreateResponse {
|
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* Reference to a prompt template and its variables.
|
|
137
|
-
* [Learn more](https://
|
|
137
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
|
|
138
138
|
*/
|
|
139
139
|
prompt?: ResponsesAPI.ResponsePrompt | null;
|
|
140
140
|
|
|
@@ -396,7 +396,7 @@ export namespace RealtimeSessionCreateResponse {
|
|
|
396
396
|
/**
|
|
397
397
|
* Give the model access to additional tools via remote Model Context Protocol
|
|
398
398
|
* (MCP) servers.
|
|
399
|
-
* [Learn more about MCP](https://
|
|
399
|
+
* [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
|
|
400
400
|
*/
|
|
401
401
|
export interface McpTool {
|
|
402
402
|
/**
|
|
@@ -430,7 +430,7 @@ export namespace RealtimeSessionCreateResponse {
|
|
|
430
430
|
* Identifier for service connectors, like those available in ChatGPT. One of
|
|
431
431
|
* `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
432
432
|
* service connectors
|
|
433
|
-
* [here](https://
|
|
433
|
+
* [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
434
434
|
*
|
|
435
435
|
* Currently supported `connector_id` values are:
|
|
436
436
|
*
|
|
@@ -71,7 +71,7 @@ export interface AudioTranscription {
|
|
|
71
71
|
/**
|
|
72
72
|
* An optional text to guide the model's style or continue a previous audio
|
|
73
73
|
* segment. For `whisper-1`, the
|
|
74
|
-
* [prompt is a list of keywords](https://
|
|
74
|
+
* [prompt is a list of keywords](https://developers.openai.com/api/docs/guides/speech-to-text#prompting).
|
|
75
75
|
* For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the
|
|
76
76
|
* prompt is a free text string, for example "expect words related to technology".
|
|
77
77
|
* Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.
|
|
@@ -1140,7 +1140,7 @@ export type NoiseReductionType = 'near_field' | 'far_field';
|
|
|
1140
1140
|
* trigger the server to stop generating audio and emit a
|
|
1141
1141
|
* `output_audio_buffer.cleared` event. This event should be preceded by a
|
|
1142
1142
|
* `response.cancel` client event to stop the generation of the current response.
|
|
1143
|
-
* [Learn more](https://
|
|
1143
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
|
|
1144
1144
|
*/
|
|
1145
1145
|
export interface OutputAudioBufferClearEvent {
|
|
1146
1146
|
/**
|
|
@@ -1230,7 +1230,7 @@ export interface RealtimeAudioConfigInput {
|
|
|
1230
1230
|
* `null` to turn off once on. Input audio transcription is not native to the
|
|
1231
1231
|
* model, since the model consumes audio directly. Transcription runs
|
|
1232
1232
|
* asynchronously through
|
|
1233
|
-
* [the /audio/transcriptions endpoint](https://
|
|
1233
|
+
* [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
|
|
1234
1234
|
* and should be treated as guidance of input audio content rather than precisely
|
|
1235
1235
|
* what the model heard. The client can optionally set the language and prompt for
|
|
1236
1236
|
* transcription, these offer additional guidance to the transcription service.
|
|
@@ -2232,7 +2232,7 @@ export namespace RealtimeResponseCreateAudioOutput {
|
|
|
2232
2232
|
/**
|
|
2233
2233
|
* Give the model access to additional tools via remote Model Context Protocol
|
|
2234
2234
|
* (MCP) servers.
|
|
2235
|
-
* [Learn more about MCP](https://
|
|
2235
|
+
* [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
|
|
2236
2236
|
*/
|
|
2237
2237
|
export interface RealtimeResponseCreateMcpTool {
|
|
2238
2238
|
/**
|
|
@@ -2266,7 +2266,7 @@ export interface RealtimeResponseCreateMcpTool {
|
|
|
2266
2266
|
* Identifier for service connectors, like those available in ChatGPT. One of
|
|
2267
2267
|
* `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
2268
2268
|
* service connectors
|
|
2269
|
-
* [here](https://
|
|
2269
|
+
* [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
2270
2270
|
*
|
|
2271
2271
|
* Currently supported `connector_id` values are:
|
|
2272
2272
|
*
|
|
@@ -2470,7 +2470,7 @@ export interface RealtimeResponseCreateParams {
|
|
|
2470
2470
|
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Reference to a prompt template and its variables.
|
|
2473
|
-
* [Learn more](https://
|
|
2473
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
|
|
2474
2474
|
*/
|
|
2475
2475
|
prompt?: ResponsesAPI.ResponsePrompt | null;
|
|
2476
2476
|
|
|
@@ -2724,7 +2724,7 @@ export namespace RealtimeServerEvent {
|
|
|
2724
2724
|
* **WebRTC/SIP Only:** Emitted when the server begins streaming audio to the
|
|
2725
2725
|
* client. This event is emitted after an audio content part has been added
|
|
2726
2726
|
* (`response.content_part.added`) to the response.
|
|
2727
|
-
* [Learn more](https://
|
|
2727
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
|
|
2728
2728
|
*/
|
|
2729
2729
|
export interface OutputAudioBufferStarted {
|
|
2730
2730
|
/**
|
|
@@ -2747,7 +2747,7 @@ export namespace RealtimeServerEvent {
|
|
|
2747
2747
|
* **WebRTC/SIP Only:** Emitted when the output audio buffer has been completely
|
|
2748
2748
|
* drained on the server, and no more audio is forthcoming. This event is emitted
|
|
2749
2749
|
* after the full response data has been sent to the client (`response.done`).
|
|
2750
|
-
* [Learn more](https://
|
|
2750
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
|
|
2751
2751
|
*/
|
|
2752
2752
|
export interface OutputAudioBufferStopped {
|
|
2753
2753
|
/**
|
|
@@ -2772,7 +2772,7 @@ export namespace RealtimeServerEvent {
|
|
|
2772
2772
|
* (`input_audio_buffer.speech_started`), or when the client has emitted the
|
|
2773
2773
|
* `output_audio_buffer.clear` event to manually cut off the current audio
|
|
2774
2774
|
* response.
|
|
2775
|
-
* [Learn more](https://
|
|
2775
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
|
|
2776
2776
|
*/
|
|
2777
2777
|
export interface OutputAudioBufferCleared {
|
|
2778
2778
|
/**
|
|
@@ -2835,7 +2835,7 @@ export interface RealtimeSession {
|
|
|
2835
2835
|
* `null` to turn off once on. Input audio transcription is not native to the
|
|
2836
2836
|
* model, since the model consumes audio directly. Transcription runs
|
|
2837
2837
|
* asynchronously through
|
|
2838
|
-
* [the /audio/transcriptions endpoint](https://
|
|
2838
|
+
* [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
|
|
2839
2839
|
* and should be treated as guidance of input audio content rather than precisely
|
|
2840
2840
|
* what the model heard. The client can optionally set the language and prompt for
|
|
2841
2841
|
* transcription, these offer additional guidance to the transcription service.
|
|
@@ -2905,7 +2905,7 @@ export interface RealtimeSession {
|
|
|
2905
2905
|
|
|
2906
2906
|
/**
|
|
2907
2907
|
* Reference to a prompt template and its variables.
|
|
2908
|
-
* [Learn more](https://
|
|
2908
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
|
|
2909
2909
|
*/
|
|
2910
2910
|
prompt?: ResponsesAPI.ResponsePrompt | null;
|
|
2911
2911
|
|
|
@@ -3207,7 +3207,7 @@ export interface RealtimeSessionCreateRequest {
|
|
|
3207
3207
|
|
|
3208
3208
|
/**
|
|
3209
3209
|
* Reference to a prompt template and its variables.
|
|
3210
|
-
* [Learn more](https://
|
|
3210
|
+
* [Learn more](https://developers.openai.com/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
|
|
3211
3211
|
*/
|
|
3212
3212
|
prompt?: ResponsesAPI.ResponsePrompt | null;
|
|
3213
3213
|
|
|
@@ -3278,7 +3278,7 @@ export type RealtimeToolsConfig = Array<RealtimeToolsConfigUnion>;
|
|
|
3278
3278
|
/**
|
|
3279
3279
|
* Give the model access to additional tools via remote Model Context Protocol
|
|
3280
3280
|
* (MCP) servers.
|
|
3281
|
-
* [Learn more about MCP](https://
|
|
3281
|
+
* [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
|
|
3282
3282
|
*/
|
|
3283
3283
|
export type RealtimeToolsConfigUnion = RealtimeFunctionTool | RealtimeToolsConfigUnion.Mcp;
|
|
3284
3284
|
|
|
@@ -3286,7 +3286,7 @@ export namespace RealtimeToolsConfigUnion {
|
|
|
3286
3286
|
/**
|
|
3287
3287
|
* Give the model access to additional tools via remote Model Context Protocol
|
|
3288
3288
|
* (MCP) servers.
|
|
3289
|
-
* [Learn more about MCP](https://
|
|
3289
|
+
* [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
|
|
3290
3290
|
*/
|
|
3291
3291
|
export interface Mcp {
|
|
3292
3292
|
/**
|
|
@@ -3320,7 +3320,7 @@ export namespace RealtimeToolsConfigUnion {
|
|
|
3320
3320
|
* Identifier for service connectors, like those available in ChatGPT. One of
|
|
3321
3321
|
* `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
|
|
3322
3322
|
* service connectors
|
|
3323
|
-
* [here](https://
|
|
3323
|
+
* [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
|
|
3324
3324
|
*
|
|
3325
3325
|
* Currently supported `connector_id` values are:
|
|
3326
3326
|
*
|
|
@@ -3515,7 +3515,7 @@ export interface RealtimeTranscriptionSessionAudioInput {
|
|
|
3515
3515
|
* `null` to turn off once on. Input audio transcription is not native to the
|
|
3516
3516
|
* model, since the model consumes audio directly. Transcription runs
|
|
3517
3517
|
* asynchronously through
|
|
3518
|
-
* [the /audio/transcriptions endpoint](https://
|
|
3518
|
+
* [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
|
|
3519
3519
|
* and should be treated as guidance of input audio content rather than precisely
|
|
3520
3520
|
* what the model heard. The client can optionally set the language and prompt for
|
|
3521
3521
|
* transcription, these offer additional guidance to the transcription service.
|
|
@@ -62,8 +62,8 @@ export interface InputTokenCountParams {
|
|
|
62
62
|
* Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a
|
|
63
63
|
* wide range of models with different capabilities, performance characteristics,
|
|
64
64
|
* and price points. Refer to the
|
|
65
|
-
* [model guide](https://
|
|
66
|
-
* available models.
|
|
65
|
+
* [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
66
|
+
* compare available models.
|
|
67
67
|
*/
|
|
68
68
|
model?: string | null;
|
|
69
69
|
|
|
@@ -82,14 +82,14 @@ export interface InputTokenCountParams {
|
|
|
82
82
|
/**
|
|
83
83
|
* The unique ID of the previous response to the model. Use this to create
|
|
84
84
|
* multi-turn conversations. Learn more about
|
|
85
|
-
* [conversation state](https://
|
|
85
|
+
* [conversation state](https://developers.openai.com/api/docs/guides/conversation-state).
|
|
86
86
|
* Cannot be used in conjunction with `conversation`.
|
|
87
87
|
*/
|
|
88
88
|
previous_response_id?: string | null;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* **gpt-5 and o-series models only** Configuration options for
|
|
92
|
-
* [reasoning models](https://
|
|
92
|
+
* [reasoning models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
93
93
|
*/
|
|
94
94
|
reasoning?: Shared.Reasoning | null;
|
|
95
95
|
|
|
@@ -97,8 +97,8 @@ export interface InputTokenCountParams {
|
|
|
97
97
|
* Configuration options for a text response from the model. Can be plain text or
|
|
98
98
|
* structured JSON data. Learn more:
|
|
99
99
|
*
|
|
100
|
-
* - [Text inputs and outputs](https://
|
|
101
|
-
* - [Structured Outputs](https://
|
|
100
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
101
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
102
102
|
*/
|
|
103
103
|
text?: InputTokenCountParams.Text | null;
|
|
104
104
|
|
|
@@ -139,8 +139,8 @@ export namespace InputTokenCountParams {
|
|
|
139
139
|
* Configuration options for a text response from the model. Can be plain text or
|
|
140
140
|
* structured JSON data. Learn more:
|
|
141
141
|
*
|
|
142
|
-
* - [Text inputs and outputs](https://
|
|
143
|
-
* - [Structured Outputs](https://
|
|
142
|
+
* - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/text)
|
|
143
|
+
* - [Structured Outputs](https://developers.openai.com/api/docs/guides/structured-outputs)
|
|
144
144
|
*/
|
|
145
145
|
export interface Text {
|
|
146
146
|
/**
|
|
@@ -148,7 +148,7 @@ export namespace InputTokenCountParams {
|
|
|
148
148
|
*
|
|
149
149
|
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
150
150
|
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
151
|
-
* [Structured Outputs guide](https://
|
|
151
|
+
* [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
152
152
|
*
|
|
153
153
|
* The default format is `{ "type": "text" }` with no additional options.
|
|
154
154
|
*
|