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.
Files changed (216) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/resources/admin/organization/audit-logs.d.mts +1 -1
  4. package/resources/admin/organization/audit-logs.d.ts +1 -1
  5. package/resources/admin/organization/projects/api-keys.d.mts +5 -0
  6. package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
  7. package/resources/admin/organization/projects/api-keys.d.ts +5 -0
  8. package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
  9. package/resources/admin/organization/projects/projects.d.mts +2 -2
  10. package/resources/admin/organization/projects/projects.d.ts +2 -2
  11. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +13 -0
  12. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
  13. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +13 -0
  14. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
  15. package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
  16. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
  17. package/resources/audio/speech.d.mts +3 -2
  18. package/resources/audio/speech.d.mts.map +1 -1
  19. package/resources/audio/speech.d.ts +3 -2
  20. package/resources/audio/speech.d.ts.map +1 -1
  21. package/resources/audio/transcriptions.d.mts +10 -10
  22. package/resources/audio/transcriptions.d.ts +10 -10
  23. package/resources/audio/translations.d.mts +1 -1
  24. package/resources/audio/translations.d.ts +1 -1
  25. package/resources/batches.d.mts +6 -5
  26. package/resources/batches.d.mts.map +1 -1
  27. package/resources/batches.d.ts +6 -5
  28. package/resources/batches.d.ts.map +1 -1
  29. package/resources/beta/assistants.d.mts +143 -147
  30. package/resources/beta/assistants.d.mts.map +1 -1
  31. package/resources/beta/assistants.d.ts +143 -147
  32. package/resources/beta/assistants.d.ts.map +1 -1
  33. package/resources/beta/responses/input-tokens.d.mts +11 -11
  34. package/resources/beta/responses/input-tokens.d.ts +11 -11
  35. package/resources/beta/responses/responses.d.mts +181 -170
  36. package/resources/beta/responses/responses.d.mts.map +1 -1
  37. package/resources/beta/responses/responses.d.ts +181 -170
  38. package/resources/beta/responses/responses.d.ts.map +1 -1
  39. package/resources/beta/responses/responses.js +3 -3
  40. package/resources/beta/responses/responses.js.map +1 -1
  41. package/resources/beta/responses/responses.mjs +3 -3
  42. package/resources/beta/responses/responses.mjs.map +1 -1
  43. package/resources/beta/threads/messages.d.mts +29 -23
  44. package/resources/beta/threads/messages.d.mts.map +1 -1
  45. package/resources/beta/threads/messages.d.ts +29 -23
  46. package/resources/beta/threads/messages.d.ts.map +1 -1
  47. package/resources/beta/threads/runs/runs.d.mts +39 -35
  48. package/resources/beta/threads/runs/runs.d.mts.map +1 -1
  49. package/resources/beta/threads/runs/runs.d.ts +39 -35
  50. package/resources/beta/threads/runs/runs.d.ts.map +1 -1
  51. package/resources/beta/threads/runs/runs.js.map +1 -1
  52. package/resources/beta/threads/runs/runs.mjs.map +1 -1
  53. package/resources/beta/threads/runs/steps.d.mts +14 -15
  54. package/resources/beta/threads/runs/steps.d.mts.map +1 -1
  55. package/resources/beta/threads/runs/steps.d.ts +14 -15
  56. package/resources/beta/threads/runs/steps.d.ts.map +1 -1
  57. package/resources/beta/threads/threads.d.mts +53 -50
  58. package/resources/beta/threads/threads.d.mts.map +1 -1
  59. package/resources/beta/threads/threads.d.ts +53 -50
  60. package/resources/beta/threads/threads.d.ts.map +1 -1
  61. package/resources/beta/threads/threads.js.map +1 -1
  62. package/resources/beta/threads/threads.mjs.map +1 -1
  63. package/resources/chat/completions/completions.d.mts +89 -81
  64. package/resources/chat/completions/completions.d.mts.map +1 -1
  65. package/resources/chat/completions/completions.d.ts +89 -81
  66. package/resources/chat/completions/completions.d.ts.map +1 -1
  67. package/resources/chat/completions/completions.js.map +1 -1
  68. package/resources/chat/completions/completions.mjs.map +1 -1
  69. package/resources/completions.d.mts +15 -14
  70. package/resources/completions.d.mts.map +1 -1
  71. package/resources/completions.d.ts +15 -14
  72. package/resources/completions.d.ts.map +1 -1
  73. package/resources/content-provenance-checks.d.mts +1 -1
  74. package/resources/content-provenance-checks.d.ts +1 -1
  75. package/resources/content-provenance-checks.js +1 -1
  76. package/resources/content-provenance-checks.mjs +1 -1
  77. package/resources/conversations/items.d.mts +3 -3
  78. package/resources/conversations/items.d.ts +3 -3
  79. package/resources/embeddings.d.mts +6 -6
  80. package/resources/embeddings.d.ts +6 -6
  81. package/resources/evals/evals.d.mts +1 -1
  82. package/resources/evals/evals.d.ts +1 -1
  83. package/resources/evals/evals.js +1 -1
  84. package/resources/evals/evals.mjs +1 -1
  85. package/resources/evals/runs/runs.d.mts +62 -57
  86. package/resources/evals/runs/runs.d.mts.map +1 -1
  87. package/resources/evals/runs/runs.d.ts +62 -57
  88. package/resources/evals/runs/runs.d.ts.map +1 -1
  89. package/resources/evals/runs/runs.js.map +1 -1
  90. package/resources/evals/runs/runs.mjs.map +1 -1
  91. package/resources/files.d.mts +5 -5
  92. package/resources/files.d.ts +5 -5
  93. package/resources/files.js +5 -5
  94. package/resources/files.mjs +5 -5
  95. package/resources/fine-tuning/alpha/graders.d.mts +5 -4
  96. package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
  97. package/resources/fine-tuning/alpha/graders.d.ts +5 -4
  98. package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
  99. package/resources/fine-tuning/checkpoints/permissions.d.mts +8 -4
  100. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
  101. package/resources/fine-tuning/checkpoints/permissions.d.ts +8 -4
  102. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
  103. package/resources/fine-tuning/checkpoints/permissions.js +8 -4
  104. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
  105. package/resources/fine-tuning/checkpoints/permissions.mjs +8 -4
  106. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
  107. package/resources/fine-tuning/jobs/jobs.d.mts +13 -12
  108. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
  109. package/resources/fine-tuning/jobs/jobs.d.ts +13 -12
  110. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
  111. package/resources/fine-tuning/jobs/jobs.js +2 -2
  112. package/resources/fine-tuning/jobs/jobs.js.map +1 -1
  113. package/resources/fine-tuning/jobs/jobs.mjs +2 -2
  114. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
  115. package/resources/graders/grader-models.d.mts +1 -1
  116. package/resources/graders/grader-models.d.ts +1 -1
  117. package/resources/images.d.mts +10 -10
  118. package/resources/images.d.ts +10 -10
  119. package/resources/moderations.d.mts +5 -4
  120. package/resources/moderations.d.mts.map +1 -1
  121. package/resources/moderations.d.ts +5 -4
  122. package/resources/moderations.d.ts.map +1 -1
  123. package/resources/moderations.js +2 -1
  124. package/resources/moderations.js.map +1 -1
  125. package/resources/moderations.mjs +2 -1
  126. package/resources/moderations.mjs.map +1 -1
  127. package/resources/realtime/calls.d.mts +1 -1
  128. package/resources/realtime/calls.d.ts +1 -1
  129. package/resources/realtime/client-secrets.d.mts +4 -4
  130. package/resources/realtime/client-secrets.d.ts +4 -4
  131. package/resources/realtime/client-secrets.js +1 -1
  132. package/resources/realtime/client-secrets.mjs +1 -1
  133. package/resources/realtime/realtime.d.mts +16 -16
  134. package/resources/realtime/realtime.d.ts +16 -16
  135. package/resources/responses/input-tokens.d.mts +9 -9
  136. package/resources/responses/input-tokens.d.ts +9 -9
  137. package/resources/responses/responses.d.mts +175 -164
  138. package/resources/responses/responses.d.mts.map +1 -1
  139. package/resources/responses/responses.d.ts +175 -164
  140. package/resources/responses/responses.d.ts.map +1 -1
  141. package/resources/responses/responses.js +3 -3
  142. package/resources/responses/responses.js.map +1 -1
  143. package/resources/responses/responses.mjs +3 -3
  144. package/resources/responses/responses.mjs.map +1 -1
  145. package/resources/shared.d.mts +12 -12
  146. package/resources/shared.d.ts +12 -12
  147. package/resources/uploads/parts.d.mts +5 -4
  148. package/resources/uploads/parts.d.mts.map +1 -1
  149. package/resources/uploads/parts.d.ts +5 -4
  150. package/resources/uploads/parts.d.ts.map +1 -1
  151. package/resources/uploads/parts.js +5 -4
  152. package/resources/uploads/parts.js.map +1 -1
  153. package/resources/uploads/parts.mjs +5 -4
  154. package/resources/uploads/parts.mjs.map +1 -1
  155. package/resources/uploads/uploads.d.mts +11 -11
  156. package/resources/uploads/uploads.d.ts +11 -11
  157. package/resources/uploads/uploads.js +9 -9
  158. package/resources/uploads/uploads.mjs +9 -9
  159. package/resources/vector-stores/file-batches.d.mts +11 -11
  160. package/resources/vector-stores/file-batches.d.ts +11 -11
  161. package/resources/vector-stores/files.d.mts +8 -8
  162. package/resources/vector-stores/files.d.ts +8 -8
  163. package/resources/vector-stores/files.js +3 -3
  164. package/resources/vector-stores/files.mjs +3 -3
  165. package/resources/vector-stores/vector-stores.d.mts +3 -3
  166. package/resources/vector-stores/vector-stores.d.ts +3 -3
  167. package/resources/webhooks/webhooks.d.mts +6 -2
  168. package/resources/webhooks/webhooks.d.mts.map +1 -1
  169. package/resources/webhooks/webhooks.d.ts +6 -2
  170. package/resources/webhooks/webhooks.d.ts.map +1 -1
  171. package/src/resources/admin/organization/audit-logs.ts +1 -1
  172. package/src/resources/admin/organization/projects/api-keys.ts +6 -0
  173. package/src/resources/admin/organization/projects/projects.ts +2 -2
  174. package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +15 -0
  175. package/src/resources/audio/speech.ts +3 -2
  176. package/src/resources/audio/transcriptions.ts +10 -10
  177. package/src/resources/audio/translations.ts +1 -1
  178. package/src/resources/batches.ts +6 -5
  179. package/src/resources/beta/assistants.ts +143 -147
  180. package/src/resources/beta/responses/input-tokens.ts +11 -11
  181. package/src/resources/beta/responses/responses.ts +181 -170
  182. package/src/resources/beta/threads/messages.ts +29 -23
  183. package/src/resources/beta/threads/runs/runs.ts +39 -35
  184. package/src/resources/beta/threads/runs/steps.ts +14 -15
  185. package/src/resources/beta/threads/threads.ts +53 -50
  186. package/src/resources/chat/completions/completions.ts +89 -81
  187. package/src/resources/completions.ts +15 -14
  188. package/src/resources/content-provenance-checks.ts +1 -1
  189. package/src/resources/conversations/items.ts +3 -3
  190. package/src/resources/embeddings.ts +6 -6
  191. package/src/resources/evals/evals.ts +1 -1
  192. package/src/resources/evals/runs/runs.ts +62 -57
  193. package/src/resources/files.ts +5 -5
  194. package/src/resources/fine-tuning/alpha/graders.ts +5 -4
  195. package/src/resources/fine-tuning/checkpoints/permissions.ts +8 -4
  196. package/src/resources/fine-tuning/jobs/jobs.ts +13 -12
  197. package/src/resources/graders/grader-models.ts +1 -1
  198. package/src/resources/images.ts +10 -10
  199. package/src/resources/moderations.ts +5 -4
  200. package/src/resources/realtime/calls.ts +1 -1
  201. package/src/resources/realtime/client-secrets.ts +4 -4
  202. package/src/resources/realtime/realtime.ts +16 -16
  203. package/src/resources/responses/input-tokens.ts +9 -9
  204. package/src/resources/responses/responses.ts +175 -164
  205. package/src/resources/shared.ts +12 -12
  206. package/src/resources/uploads/parts.ts +5 -4
  207. package/src/resources/uploads/uploads.ts +11 -11
  208. package/src/resources/vector-stores/file-batches.ts +11 -11
  209. package/src/resources/vector-stores/files.ts +8 -8
  210. package/src/resources/vector-stores/vector-stores.ts +3 -3
  211. package/src/resources/webhooks/webhooks.ts +6 -2
  212. package/src/version.ts +1 -1
  213. package/version.d.mts +1 -1
  214. package/version.d.ts +1 -1
  215. package/version.js +1 -1
  216. 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 [moderation guide](https://platform.openai.com/docs/guides/moderation).
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://platform.openai.com/docs/guides/moderation), and
354
- * learn about available models
355
- * [here](https://platform.openai.com/docs/models#moderation).
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://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
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://platform.openai.com/docs/guides/realtime-webrtc).
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://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
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://platform.openai.com/docs/guides/tools-remote-mcp).
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://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
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://platform.openai.com/docs/guides/speech-to-text#prompting).
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://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
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://platform.openai.com/docs/api-reference/audio/createTranscription)
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://platform.openai.com/docs/guides/tools-remote-mcp).
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://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
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://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
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://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
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://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
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://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
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://platform.openai.com/docs/api-reference/audio/createTranscription)
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://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
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://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
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://platform.openai.com/docs/guides/tools-remote-mcp).
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://platform.openai.com/docs/guides/tools-remote-mcp).
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://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
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://platform.openai.com/docs/api-reference/audio/createTranscription)
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://platform.openai.com/docs/models) to browse and compare
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://platform.openai.com/docs/guides/conversation-state).
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://platform.openai.com/docs/guides/reasoning).
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://platform.openai.com/docs/guides/text)
101
- * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
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://platform.openai.com/docs/guides/text)
143
- * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
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://platform.openai.com/docs/guides/structured-outputs).
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
  *