File tree Expand file tree Collapse file tree 1 file changed +17
-20
lines changed Expand file tree Collapse file tree 1 file changed +17
-20
lines changed Original file line number Diff line number Diff line change @@ -306,25 +306,6 @@ export class OpenAI extends Core.APIClient {
306
306
static fileFromPath = Uploads . fileFromPath ;
307
307
}
308
308
309
- export {
310
- OpenAIError ,
311
- APIError ,
312
- APIConnectionError ,
313
- APIConnectionTimeoutError ,
314
- APIUserAbortError ,
315
- NotFoundError ,
316
- ConflictError ,
317
- RateLimitError ,
318
- BadRequestError ,
319
- AuthenticationError ,
320
- InternalServerError ,
321
- PermissionDeniedError ,
322
- UnprocessableEntityError ,
323
- } from './error' ;
324
-
325
- export import toFile = Uploads . toFile ;
326
- export import fileFromPath = Uploads . fileFromPath ;
327
-
328
309
OpenAI . Completions = Completions ;
329
310
OpenAI . Chat = Chat ;
330
311
OpenAI . Embeddings = Embeddings ;
@@ -340,7 +321,6 @@ OpenAI.Beta = Beta;
340
321
OpenAI . Batches = Batches ;
341
322
OpenAI . BatchesPage = BatchesPage ;
342
323
OpenAI . Uploads = UploadsAPIUploads ;
343
-
344
324
export declare namespace OpenAI {
345
325
export type RequestOptions = Core . RequestOptions ;
346
326
@@ -664,4 +644,21 @@ const API_KEY_SENTINEL = '<Missing Key>';
664
644
665
645
// ---------------------- End Azure ----------------------
666
646
647
+ export { toFile , fileFromPath } from 'openai/uploads' ;
648
+ export {
649
+ OpenAIError ,
650
+ APIError ,
651
+ APIConnectionError ,
652
+ APIConnectionTimeoutError ,
653
+ APIUserAbortError ,
654
+ NotFoundError ,
655
+ ConflictError ,
656
+ RateLimitError ,
657
+ BadRequestError ,
658
+ AuthenticationError ,
659
+ InternalServerError ,
660
+ PermissionDeniedError ,
661
+ UnprocessableEntityError ,
662
+ } from 'openai/error' ;
663
+
667
664
export default OpenAI ;
You can’t perform that action at this time.
0 commit comments