openai 4.45.0 → 4.46.1

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 (204) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/index.d.mts +2 -2
  4. package/index.d.ts +2 -2
  5. package/index.d.ts.map +1 -1
  6. package/index.js +2 -2
  7. package/index.js.map +1 -1
  8. package/index.mjs +2 -2
  9. package/index.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/audio/audio.d.ts +4 -4
  12. package/resources/audio/audio.d.ts.map +1 -1
  13. package/resources/audio/audio.js +4 -4
  14. package/resources/audio/audio.js.map +1 -1
  15. package/resources/audio/audio.mjs +4 -4
  16. package/resources/audio/audio.mjs.map +1 -1
  17. package/resources/audio/speech.d.ts +4 -4
  18. package/resources/audio/speech.d.ts.map +1 -1
  19. package/resources/audio/speech.js +1 -1
  20. package/resources/audio/speech.js.map +1 -1
  21. package/resources/audio/speech.mjs +1 -1
  22. package/resources/audio/speech.mjs.map +1 -1
  23. package/resources/audio/transcriptions.d.ts +4 -4
  24. package/resources/audio/transcriptions.d.ts.map +1 -1
  25. package/resources/audio/transcriptions.js +2 -2
  26. package/resources/audio/transcriptions.js.map +1 -1
  27. package/resources/audio/transcriptions.mjs +2 -2
  28. package/resources/audio/transcriptions.mjs.map +1 -1
  29. package/resources/audio/translations.d.ts +4 -4
  30. package/resources/audio/translations.d.ts.map +1 -1
  31. package/resources/audio/translations.js +2 -2
  32. package/resources/audio/translations.js.map +1 -1
  33. package/resources/audio/translations.mjs +2 -2
  34. package/resources/audio/translations.mjs.map +1 -1
  35. package/resources/batches.d.ts +4 -4
  36. package/resources/batches.d.ts.map +1 -1
  37. package/resources/batches.js +4 -4
  38. package/resources/batches.js.map +1 -1
  39. package/resources/batches.mjs +4 -4
  40. package/resources/batches.mjs.map +1 -1
  41. package/resources/beta/assistants.d.ts +10 -10
  42. package/resources/beta/assistants.d.ts.map +1 -1
  43. package/resources/beta/assistants.js +4 -4
  44. package/resources/beta/assistants.js.map +1 -1
  45. package/resources/beta/assistants.mjs +4 -4
  46. package/resources/beta/assistants.mjs.map +1 -1
  47. package/resources/beta/beta.d.ts +5 -5
  48. package/resources/beta/beta.d.ts.map +1 -1
  49. package/resources/beta/beta.js +5 -5
  50. package/resources/beta/beta.js.map +1 -1
  51. package/resources/beta/beta.mjs +5 -5
  52. package/resources/beta/beta.mjs.map +1 -1
  53. package/resources/beta/chat/chat.d.ts +2 -2
  54. package/resources/beta/chat/chat.d.ts.map +1 -1
  55. package/resources/beta/chat/chat.js +2 -2
  56. package/resources/beta/chat/chat.js.map +1 -1
  57. package/resources/beta/chat/chat.mjs +2 -2
  58. package/resources/beta/chat/chat.mjs.map +1 -1
  59. package/resources/beta/chat/completions.d.ts +14 -14
  60. package/resources/beta/chat/completions.d.ts.map +1 -1
  61. package/resources/beta/chat/completions.js +8 -8
  62. package/resources/beta/chat/completions.js.map +1 -1
  63. package/resources/beta/chat/completions.mjs +8 -8
  64. package/resources/beta/chat/completions.mjs.map +1 -1
  65. package/resources/beta/threads/messages.d.ts +5 -5
  66. package/resources/beta/threads/messages.d.ts.map +1 -1
  67. package/resources/beta/threads/messages.js +4 -4
  68. package/resources/beta/threads/messages.js.map +1 -1
  69. package/resources/beta/threads/messages.mjs +4 -4
  70. package/resources/beta/threads/messages.mjs.map +1 -1
  71. package/resources/beta/threads/runs/runs.d.ts +16 -16
  72. package/resources/beta/threads/runs/runs.d.ts.map +1 -1
  73. package/resources/beta/threads/runs/runs.js +7 -7
  74. package/resources/beta/threads/runs/runs.js.map +1 -1
  75. package/resources/beta/threads/runs/runs.mjs +7 -7
  76. package/resources/beta/threads/runs/runs.mjs.map +1 -1
  77. package/resources/beta/threads/runs/steps.d.ts +4 -4
  78. package/resources/beta/threads/runs/steps.d.ts.map +1 -1
  79. package/resources/beta/threads/runs/steps.js +4 -4
  80. package/resources/beta/threads/runs/steps.js.map +1 -1
  81. package/resources/beta/threads/runs/steps.mjs +4 -4
  82. package/resources/beta/threads/runs/steps.mjs.map +1 -1
  83. package/resources/beta/threads/threads.d.ts +12 -12
  84. package/resources/beta/threads/threads.d.ts.map +1 -1
  85. package/resources/beta/threads/threads.js +5 -5
  86. package/resources/beta/threads/threads.js.map +1 -1
  87. package/resources/beta/threads/threads.mjs +5 -5
  88. package/resources/beta/threads/threads.mjs.map +1 -1
  89. package/resources/beta/vector-stores/file-batches.d.ts +7 -7
  90. package/resources/beta/vector-stores/file-batches.d.ts.map +1 -1
  91. package/resources/beta/vector-stores/file-batches.js +5 -5
  92. package/resources/beta/vector-stores/file-batches.js.map +1 -1
  93. package/resources/beta/vector-stores/file-batches.mjs +5 -5
  94. package/resources/beta/vector-stores/file-batches.mjs.map +1 -1
  95. package/resources/beta/vector-stores/files.d.ts +5 -5
  96. package/resources/beta/vector-stores/files.d.ts.map +1 -1
  97. package/resources/beta/vector-stores/files.js +5 -5
  98. package/resources/beta/vector-stores/files.js.map +1 -1
  99. package/resources/beta/vector-stores/files.mjs +5 -5
  100. package/resources/beta/vector-stores/files.mjs.map +1 -1
  101. package/resources/beta/vector-stores/vector-stores.d.ts +6 -6
  102. package/resources/beta/vector-stores/vector-stores.d.ts.map +1 -1
  103. package/resources/beta/vector-stores/vector-stores.js +6 -6
  104. package/resources/beta/vector-stores/vector-stores.js.map +1 -1
  105. package/resources/beta/vector-stores/vector-stores.mjs +6 -6
  106. package/resources/beta/vector-stores/vector-stores.mjs.map +1 -1
  107. package/resources/chat/chat.d.ts +4 -4
  108. package/resources/chat/chat.d.ts.map +1 -1
  109. package/resources/chat/chat.js +2 -2
  110. package/resources/chat/chat.js.map +1 -1
  111. package/resources/chat/chat.mjs +2 -2
  112. package/resources/chat/chat.mjs.map +1 -1
  113. package/resources/chat/completions.d.ts +8 -8
  114. package/resources/chat/completions.d.ts.map +1 -1
  115. package/resources/chat/completions.js +1 -1
  116. package/resources/chat/completions.js.map +1 -1
  117. package/resources/chat/completions.mjs +1 -1
  118. package/resources/chat/completions.mjs.map +1 -1
  119. package/resources/completions.d.ts +6 -6
  120. package/resources/completions.d.ts.map +1 -1
  121. package/resources/completions.js +1 -1
  122. package/resources/completions.js.map +1 -1
  123. package/resources/completions.mjs +1 -1
  124. package/resources/completions.mjs.map +1 -1
  125. package/resources/embeddings.d.ts +3 -3
  126. package/resources/embeddings.d.ts.map +1 -1
  127. package/resources/embeddings.js +1 -1
  128. package/resources/embeddings.js.map +1 -1
  129. package/resources/embeddings.mjs +1 -1
  130. package/resources/embeddings.mjs.map +1 -1
  131. package/resources/files.d.ts +6 -6
  132. package/resources/files.d.ts.map +1 -1
  133. package/resources/files.js +7 -7
  134. package/resources/files.js.map +1 -1
  135. package/resources/files.mjs +7 -7
  136. package/resources/files.mjs.map +1 -1
  137. package/resources/fine-tuning/fine-tuning.d.ts +2 -2
  138. package/resources/fine-tuning/fine-tuning.d.ts.map +1 -1
  139. package/resources/fine-tuning/fine-tuning.js +2 -2
  140. package/resources/fine-tuning/fine-tuning.js.map +1 -1
  141. package/resources/fine-tuning/fine-tuning.mjs +2 -2
  142. package/resources/fine-tuning/fine-tuning.mjs.map +1 -1
  143. package/resources/fine-tuning/jobs/checkpoints.d.ts +4 -4
  144. package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
  145. package/resources/fine-tuning/jobs/checkpoints.js +4 -4
  146. package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
  147. package/resources/fine-tuning/jobs/checkpoints.mjs +4 -4
  148. package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
  149. package/resources/fine-tuning/jobs/jobs.d.ts +5 -5
  150. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
  151. package/resources/fine-tuning/jobs/jobs.js +5 -5
  152. package/resources/fine-tuning/jobs/jobs.js.map +1 -1
  153. package/resources/fine-tuning/jobs/jobs.mjs +5 -5
  154. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
  155. package/resources/images.d.ts +4 -4
  156. package/resources/images.d.ts.map +1 -1
  157. package/resources/images.js +2 -2
  158. package/resources/images.js.map +1 -1
  159. package/resources/images.mjs +2 -2
  160. package/resources/images.mjs.map +1 -1
  161. package/resources/models.d.ts +4 -4
  162. package/resources/models.d.ts.map +1 -1
  163. package/resources/models.js +3 -3
  164. package/resources/models.js.map +1 -1
  165. package/resources/models.mjs +3 -3
  166. package/resources/models.mjs.map +1 -1
  167. package/resources/moderations.d.ts +3 -3
  168. package/resources/moderations.d.ts.map +1 -1
  169. package/resources/moderations.js +1 -1
  170. package/resources/moderations.js.map +1 -1
  171. package/resources/moderations.mjs +1 -1
  172. package/resources/moderations.mjs.map +1 -1
  173. package/src/index.ts +2 -2
  174. package/src/resources/audio/audio.ts +4 -4
  175. package/src/resources/audio/speech.ts +4 -4
  176. package/src/resources/audio/transcriptions.ts +4 -4
  177. package/src/resources/audio/translations.ts +4 -4
  178. package/src/resources/batches.ts +5 -5
  179. package/src/resources/beta/assistants.ts +12 -10
  180. package/src/resources/beta/beta.ts +5 -5
  181. package/src/resources/beta/chat/chat.ts +2 -2
  182. package/src/resources/beta/chat/completions.ts +14 -14
  183. package/src/resources/beta/threads/messages.ts +6 -6
  184. package/src/resources/beta/threads/runs/runs.ts +22 -14
  185. package/src/resources/beta/threads/runs/steps.ts +5 -5
  186. package/src/resources/beta/threads/threads.ts +16 -10
  187. package/src/resources/beta/vector-stores/file-batches.ts +10 -10
  188. package/src/resources/beta/vector-stores/files.ts +6 -6
  189. package/src/resources/beta/vector-stores/vector-stores.ts +7 -7
  190. package/src/resources/chat/chat.ts +5 -3
  191. package/src/resources/chat/completions.ts +8 -8
  192. package/src/resources/completions.ts +6 -6
  193. package/src/resources/embeddings.ts +3 -3
  194. package/src/resources/files.ts +9 -9
  195. package/src/resources/fine-tuning/fine-tuning.ts +2 -2
  196. package/src/resources/fine-tuning/jobs/checkpoints.ts +5 -5
  197. package/src/resources/fine-tuning/jobs/jobs.ts +6 -6
  198. package/src/resources/images.ts +4 -4
  199. package/src/resources/models.ts +4 -4
  200. package/src/resources/moderations.ts +3 -3
  201. package/src/version.ts +1 -1
  202. package/version.d.ts +1 -1
  203. package/version.js +1 -1
  204. package/version.mjs +1 -1
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from "../../../resource";
4
- import * as CompletionsAPI from "./completions";
3
+ import { APIResource } from '../../../resource';
4
+ import * as CompletionsAPI from './completions';
5
5
 
6
6
  export class Chat extends APIResource {
7
7
  completions: CompletionsAPI.Completions = new CompletionsAPI.Completions(this._client);
@@ -1,18 +1,18 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../core";
4
- import { APIResource } from "../../../resource";
5
- import { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from "../../../lib/ChatCompletionRunner";
6
- export { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from "../../../lib/ChatCompletionRunner";
3
+ import * as Core from '../../../core';
4
+ import { APIResource } from '../../../resource';
5
+ import { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from '../../../lib/ChatCompletionRunner';
6
+ export { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from '../../../lib/ChatCompletionRunner';
7
7
  import {
8
8
  ChatCompletionStreamingRunner,
9
9
  ChatCompletionStreamingFunctionRunnerParams,
10
- } from "../../../lib/ChatCompletionStreamingRunner";
10
+ } from '../../../lib/ChatCompletionStreamingRunner';
11
11
  export {
12
12
  ChatCompletionStreamingRunner,
13
13
  ChatCompletionStreamingFunctionRunnerParams,
14
- } from "../../../lib/ChatCompletionStreamingRunner";
15
- import { BaseFunctionsArgs } from "../../../lib/RunnableFunction";
14
+ } from '../../../lib/ChatCompletionStreamingRunner';
15
+ import { BaseFunctionsArgs } from '../../../lib/RunnableFunction';
16
16
  export {
17
17
  RunnableFunction,
18
18
  RunnableFunctions,
@@ -20,13 +20,13 @@ export {
20
20
  RunnableFunctionWithoutParse,
21
21
  ParsingFunction,
22
22
  ParsingToolFunction,
23
- } from "../../../lib/RunnableFunction";
24
- import { ChatCompletionToolRunnerParams } from "../../../lib/ChatCompletionRunner";
25
- export { ChatCompletionToolRunnerParams } from "../../../lib/ChatCompletionRunner";
26
- import { ChatCompletionStreamingToolRunnerParams } from "../../../lib/ChatCompletionStreamingRunner";
27
- export { ChatCompletionStreamingToolRunnerParams } from "../../../lib/ChatCompletionStreamingRunner";
28
- import { ChatCompletionStream, type ChatCompletionStreamParams } from "../../../lib/ChatCompletionStream";
29
- export { ChatCompletionStream, type ChatCompletionStreamParams } from "../../../lib/ChatCompletionStream";
23
+ } from '../../../lib/RunnableFunction';
24
+ import { ChatCompletionToolRunnerParams } from '../../../lib/ChatCompletionRunner';
25
+ export { ChatCompletionToolRunnerParams } from '../../../lib/ChatCompletionRunner';
26
+ import { ChatCompletionStreamingToolRunnerParams } from '../../../lib/ChatCompletionStreamingRunner';
27
+ export { ChatCompletionStreamingToolRunnerParams } from '../../../lib/ChatCompletionStreamingRunner';
28
+ import { ChatCompletionStream, type ChatCompletionStreamParams } from '../../../lib/ChatCompletionStream';
29
+ export { ChatCompletionStream, type ChatCompletionStreamParams } from '../../../lib/ChatCompletionStream';
30
30
 
31
31
  export class Completions extends APIResource {
32
32
  /**
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../core";
4
- import { APIResource } from "../../../resource";
5
- import { isRequestOptions } from "../../../core";
6
- import * as MessagesAPI from "./messages";
7
- import * as AssistantsAPI from "../assistants";
8
- import { CursorPage, type CursorPageParams } from "../../../pagination";
3
+ import * as Core from '../../../core';
4
+ import { APIResource } from '../../../resource';
5
+ import { isRequestOptions } from '../../../core';
6
+ import * as MessagesAPI from './messages';
7
+ import * as AssistantsAPI from '../assistants';
8
+ import { CursorPage, type CursorPageParams } from '../../../pagination';
9
9
 
10
10
  export class Messages extends APIResource {
11
11
  /**
@@ -1,19 +1,19 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../../core";
4
- import { APIPromise } from "../../../../core";
5
- import { APIResource } from "../../../../resource";
6
- import { isRequestOptions } from "../../../../core";
7
- import { AssistantStream, RunCreateParamsBaseStream } from "../../../../lib/AssistantStream";
8
- import { sleep } from "../../../../core";
9
- import { RunSubmitToolOutputsParamsStream } from "../../../../lib/AssistantStream";
10
- import * as RunsAPI from "./runs";
11
- import * as AssistantsAPI from "../../assistants";
12
- import * as MessagesAPI from "../messages";
13
- import * as ThreadsAPI from "../threads";
14
- import * as StepsAPI from "./steps";
15
- import { CursorPage, type CursorPageParams } from "../../../../pagination";
16
- import { Stream } from "../../../../streaming";
3
+ import * as Core from '../../../../core';
4
+ import { APIPromise } from '../../../../core';
5
+ import { APIResource } from '../../../../resource';
6
+ import { isRequestOptions } from '../../../../core';
7
+ import { AssistantStream, RunCreateParamsBaseStream } from '../../../../lib/AssistantStream';
8
+ import { sleep } from '../../../../core';
9
+ import { RunSubmitToolOutputsParamsStream } from '../../../../lib/AssistantStream';
10
+ import * as RunsAPI from './runs';
11
+ import * as AssistantsAPI from '../../assistants';
12
+ import * as MessagesAPI from '../messages';
13
+ import * as ThreadsAPI from '../threads';
14
+ import * as StepsAPI from './steps';
15
+ import { CursorPage, type CursorPageParams } from '../../../../pagination';
16
+ import { Stream } from '../../../../streaming';
17
17
 
18
18
  export class Runs extends APIResource {
19
19
  steps: StepsAPI.Steps = new StepsAPI.Steps(this._client);
@@ -660,6 +660,8 @@ export interface RunCreateParamsBase {
660
660
  */
661
661
  model?:
662
662
  | (string & {})
663
+ | 'gpt-4o'
664
+ | 'gpt-4o-2024-05-13'
663
665
  | 'gpt-4-turbo'
664
666
  | 'gpt-4-turbo-2024-04-09'
665
667
  | 'gpt-4-0125-preview'
@@ -919,6 +921,8 @@ export interface RunCreateAndPollParams {
919
921
  */
920
922
  model?:
921
923
  | (string & {})
924
+ | 'gpt-4o'
925
+ | 'gpt-4o-2024-05-13'
922
926
  | 'gpt-4-turbo'
923
927
  | 'gpt-4-turbo-2024-04-09'
924
928
  | 'gpt-4-0125-preview'
@@ -1124,6 +1128,8 @@ export interface RunCreateAndStreamParams {
1124
1128
  */
1125
1129
  model?:
1126
1130
  | (string & {})
1131
+ | 'gpt-4o'
1132
+ | 'gpt-4o-2024-05-13'
1127
1133
  | 'gpt-4-turbo'
1128
1134
  | 'gpt-4-turbo-2024-04-09'
1129
1135
  | 'gpt-4-0125-preview'
@@ -1329,6 +1335,8 @@ export interface RunStreamParams {
1329
1335
  */
1330
1336
  model?:
1331
1337
  | (string & {})
1338
+ | 'gpt-4o'
1339
+ | 'gpt-4o-2024-05-13'
1332
1340
  | 'gpt-4-turbo'
1333
1341
  | 'gpt-4-turbo-2024-04-09'
1334
1342
  | 'gpt-4-0125-preview'
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../../core";
4
- import { APIResource } from "../../../../resource";
5
- import { isRequestOptions } from "../../../../core";
6
- import * as StepsAPI from "./steps";
7
- import { CursorPage, type CursorPageParams } from "../../../../pagination";
3
+ import * as Core from '../../../../core';
4
+ import { APIResource } from '../../../../resource';
5
+ import { isRequestOptions } from '../../../../core';
6
+ import * as StepsAPI from './steps';
7
+ import { CursorPage, type CursorPageParams } from '../../../../pagination';
8
8
 
9
9
  export class Steps extends APIResource {
10
10
  /**
@@ -1,15 +1,15 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../core";
4
- import { APIPromise } from "../../../core";
5
- import { APIResource } from "../../../resource";
6
- import { isRequestOptions } from "../../../core";
7
- import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from "../../../lib/AssistantStream";
8
- import * as ThreadsAPI from "./threads";
9
- import * as AssistantsAPI from "../assistants";
10
- import * as MessagesAPI from "./messages";
11
- import * as RunsAPI from "./runs/runs";
12
- import { Stream } from "../../../streaming";
3
+ import * as Core from '../../../core';
4
+ import { APIPromise } from '../../../core';
5
+ import { APIResource } from '../../../resource';
6
+ import { isRequestOptions } from '../../../core';
7
+ import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from '../../../lib/AssistantStream';
8
+ import * as ThreadsAPI from './threads';
9
+ import * as AssistantsAPI from '../assistants';
10
+ import * as MessagesAPI from './messages';
11
+ import * as RunsAPI from './runs/runs';
12
+ import { Stream } from '../../../streaming';
13
13
 
14
14
  export class Threads extends APIResource {
15
15
  runs: RunsAPI.Runs = new RunsAPI.Runs(this._client);
@@ -492,6 +492,8 @@ export interface ThreadCreateAndRunParamsBase {
492
492
  */
493
493
  model?:
494
494
  | (string & {})
495
+ | 'gpt-4o'
496
+ | 'gpt-4o-2024-05-13'
495
497
  | 'gpt-4-turbo'
496
498
  | 'gpt-4-turbo-2024-04-09'
497
499
  | 'gpt-4-0125-preview'
@@ -849,6 +851,8 @@ export interface ThreadCreateAndRunPollParams {
849
851
  */
850
852
  model?:
851
853
  | (string & {})
854
+ | 'gpt-4o'
855
+ | 'gpt-4o-2024-05-13'
852
856
  | 'gpt-4-turbo'
853
857
  | 'gpt-4-turbo-2024-04-09'
854
858
  | 'gpt-4-0125-preview'
@@ -1178,6 +1182,8 @@ export interface ThreadCreateAndRunStreamParams {
1178
1182
  */
1179
1183
  model?:
1180
1184
  | (string & {})
1185
+ | 'gpt-4o'
1186
+ | 'gpt-4o-2024-05-13'
1181
1187
  | 'gpt-4-turbo'
1182
1188
  | 'gpt-4-turbo-2024-04-09'
1183
1189
  | 'gpt-4-0125-preview'
@@ -1,15 +1,15 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../core";
4
- import { APIResource } from "../../../resource";
5
- import { isRequestOptions } from "../../../core";
6
- import { sleep } from "../../../core";
7
- import { Uploadable } from "../../../core";
8
- import { allSettledWithThrow } from "../../../lib/Util";
9
- import * as FileBatchesAPI from "./file-batches";
10
- import * as FilesAPI from "./files";
11
- import { VectorStoreFilesPage } from "./files";
12
- import { type CursorPageParams } from "../../../pagination";
3
+ import * as Core from '../../../core';
4
+ import { APIResource } from '../../../resource';
5
+ import { isRequestOptions } from '../../../core';
6
+ import { sleep } from '../../../core';
7
+ import { Uploadable } from '../../../core';
8
+ import { allSettledWithThrow } from '../../../lib/Util';
9
+ import * as FileBatchesAPI from './file-batches';
10
+ import * as FilesAPI from './files';
11
+ import { VectorStoreFilesPage } from './files';
12
+ import { type CursorPageParams } from '../../../pagination';
13
13
 
14
14
  export class FileBatches extends APIResource {
15
15
  /**
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../core";
4
- import { APIResource } from "../../../resource";
5
- import { isRequestOptions } from "../../../core";
6
- import { sleep, Uploadable } from "../../../core";
7
- import * as FilesAPI from "./files";
8
- import { CursorPage, type CursorPageParams } from "../../../pagination";
3
+ import * as Core from '../../../core';
4
+ import { APIResource } from '../../../resource';
5
+ import { isRequestOptions } from '../../../core';
6
+ import { sleep, Uploadable } from '../../../core';
7
+ import * as FilesAPI from './files';
8
+ import { CursorPage, type CursorPageParams } from '../../../pagination';
9
9
 
10
10
  export class Files extends APIResource {
11
11
  /**
@@ -1,12 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../core";
4
- import { APIResource } from "../../../resource";
5
- import { isRequestOptions } from "../../../core";
6
- import * as VectorStoresAPI from "./vector-stores";
7
- import * as FileBatchesAPI from "./file-batches";
8
- import * as FilesAPI from "./files";
9
- import { CursorPage, type CursorPageParams } from "../../../pagination";
3
+ import * as Core from '../../../core';
4
+ import { APIResource } from '../../../resource';
5
+ import { isRequestOptions } from '../../../core';
6
+ import * as VectorStoresAPI from './vector-stores';
7
+ import * as FileBatchesAPI from './file-batches';
8
+ import * as FilesAPI from './files';
9
+ import { CursorPage, type CursorPageParams } from '../../../pagination';
10
10
 
11
11
  export class VectorStores extends APIResource {
12
12
  files: FilesAPI.Files = new FilesAPI.Files(this._client);
@@ -1,14 +1,16 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from "../../resource";
4
- import * as ChatAPI from "./chat";
5
- import * as CompletionsAPI from "./completions";
3
+ import { APIResource } from '../../resource';
4
+ import * as ChatAPI from './chat';
5
+ import * as CompletionsAPI from './completions';
6
6
 
7
7
  export class Chat extends APIResource {
8
8
  completions: CompletionsAPI.Completions = new CompletionsAPI.Completions(this._client);
9
9
  }
10
10
 
11
11
  export type ChatModel =
12
+ | 'gpt-4o'
13
+ | 'gpt-4o-2024-05-13'
12
14
  | 'gpt-4-turbo'
13
15
  | 'gpt-4-turbo-2024-04-09'
14
16
  | 'gpt-4-0125-preview'
@@ -1,13 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../core";
4
- import { APIPromise } from "../../core";
5
- import { APIResource } from "../../resource";
6
- import * as ChatCompletionsAPI from "./completions";
7
- import * as CompletionsAPI from "../completions";
8
- import * as Shared from "../shared";
9
- import * as ChatAPI from "./chat";
10
- import { Stream } from "../../streaming";
3
+ import * as Core from '../../core';
4
+ import { APIPromise } from '../../core';
5
+ import { APIResource } from '../../resource';
6
+ import * as ChatCompletionsAPI from './completions';
7
+ import * as CompletionsAPI from '../completions';
8
+ import * as Shared from '../shared';
9
+ import * as ChatAPI from './chat';
10
+ import { Stream } from '../../streaming';
11
11
 
12
12
  export class Completions extends APIResource {
13
13
  /**
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../core";
4
- import { APIPromise } from "../core";
5
- import { APIResource } from "../resource";
6
- import * as CompletionsAPI from "./completions";
7
- import * as ChatCompletionsAPI from "./chat/completions";
8
- import { Stream } from "../streaming";
3
+ import * as Core from '../core';
4
+ import { APIPromise } from '../core';
5
+ import { APIResource } from '../resource';
6
+ import * as CompletionsAPI from './completions';
7
+ import * as ChatCompletionsAPI from './chat/completions';
8
+ import { Stream } from '../streaming';
9
9
 
10
10
  export class Completions extends APIResource {
11
11
  /**
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../core";
4
- import { APIResource } from "../resource";
5
- import * as EmbeddingsAPI from "./embeddings";
3
+ import * as Core from '../core';
4
+ import { APIResource } from '../resource';
5
+ import * as EmbeddingsAPI from './embeddings';
6
6
 
7
7
  export class Embeddings extends APIResource {
8
8
  /**
@@ -1,14 +1,14 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../core";
4
- import { APIResource } from "../resource";
5
- import { isRequestOptions } from "../core";
6
- import { type Response } from "../_shims/index";
7
- import { sleep } from "../core";
8
- import { APIConnectionTimeoutError } from "../error";
9
- import * as FilesAPI from "./files";
10
- import { type Uploadable, multipartFormRequestOptions } from "../core";
11
- import { Page } from "../pagination";
3
+ import * as Core from '../core';
4
+ import { APIResource } from '../resource';
5
+ import { isRequestOptions } from '../core';
6
+ import { type Response } from '../_shims/index';
7
+ import { sleep } from '../core';
8
+ import { APIConnectionTimeoutError } from '../error';
9
+ import * as FilesAPI from './files';
10
+ import { type Uploadable, multipartFormRequestOptions } from '../core';
11
+ import { Page } from '../pagination';
12
12
 
13
13
  export class Files extends APIResource {
14
14
  /**
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from "../../resource";
4
- import * as JobsAPI from "./jobs/jobs";
3
+ import { APIResource } from '../../resource';
4
+ import * as JobsAPI from './jobs/jobs';
5
5
 
6
6
  export class FineTuning extends APIResource {
7
7
  jobs: JobsAPI.Jobs = new JobsAPI.Jobs(this._client);
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../core";
4
- import { APIResource } from "../../../resource";
5
- import { isRequestOptions } from "../../../core";
6
- import * as CheckpointsAPI from "./checkpoints";
7
- import { CursorPage, type CursorPageParams } from "../../../pagination";
3
+ import * as Core from '../../../core';
4
+ import { APIResource } from '../../../resource';
5
+ import { isRequestOptions } from '../../../core';
6
+ import * as CheckpointsAPI from './checkpoints';
7
+ import { CursorPage, type CursorPageParams } from '../../../pagination';
8
8
 
9
9
  export class Checkpoints extends APIResource {
10
10
  /**
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../../../core";
4
- import { APIResource } from "../../../resource";
5
- import { isRequestOptions } from "../../../core";
6
- import * as JobsAPI from "./jobs";
7
- import * as CheckpointsAPI from "./checkpoints";
8
- import { CursorPage, type CursorPageParams } from "../../../pagination";
3
+ import * as Core from '../../../core';
4
+ import { APIResource } from '../../../resource';
5
+ import { isRequestOptions } from '../../../core';
6
+ import * as JobsAPI from './jobs';
7
+ import * as CheckpointsAPI from './checkpoints';
8
+ import { CursorPage, type CursorPageParams } from '../../../pagination';
9
9
 
10
10
  export class Jobs extends APIResource {
11
11
  checkpoints: CheckpointsAPI.Checkpoints = new CheckpointsAPI.Checkpoints(this._client);
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../core";
4
- import { APIResource } from "../resource";
5
- import * as ImagesAPI from "./images";
6
- import { type Uploadable, multipartFormRequestOptions } from "../core";
3
+ import * as Core from '../core';
4
+ import { APIResource } from '../resource';
5
+ import * as ImagesAPI from './images';
6
+ import { type Uploadable, multipartFormRequestOptions } from '../core';
7
7
 
8
8
  export class Images extends APIResource {
9
9
  /**
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../core";
4
- import { APIResource } from "../resource";
5
- import * as ModelsAPI from "./models";
6
- import { Page } from "../pagination";
3
+ import * as Core from '../core';
4
+ import { APIResource } from '../resource';
5
+ import * as ModelsAPI from './models';
6
+ import { Page } from '../pagination';
7
7
 
8
8
  export class Models extends APIResource {
9
9
  /**
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Core from "../core";
4
- import { APIResource } from "../resource";
5
- import * as ModerationsAPI from "./moderations";
3
+ import * as Core from '../core';
4
+ import { APIResource } from '../resource';
5
+ import * as ModerationsAPI from './moderations';
6
6
 
7
7
  export class Moderations extends APIResource {
8
8
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.45.0'; // x-release-please-version
1
+ export const VERSION = '4.46.1'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.45.0";
1
+ export declare const VERSION = "4.46.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.45.0'; // x-release-please-version
4
+ exports.VERSION = '4.46.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.45.0'; // x-release-please-version
1
+ export const VERSION = '4.46.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map