Skip to content

Commit f555dd6

Browse files
author
Stainless Bot
committed
chore(internal): use reexports not destructuring (#1181)
1 parent a92cc1d commit f555dd6

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

src/index.ts

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -306,25 +306,6 @@ export class OpenAI extends Core.APIClient {
306306
static fileFromPath = Uploads.fileFromPath;
307307
}
308308

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-
328309
OpenAI.Completions = Completions;
329310
OpenAI.Chat = Chat;
330311
OpenAI.Embeddings = Embeddings;
@@ -340,7 +321,6 @@ OpenAI.Beta = Beta;
340321
OpenAI.Batches = Batches;
341322
OpenAI.BatchesPage = BatchesPage;
342323
OpenAI.Uploads = UploadsAPIUploads;
343-
344324
export declare namespace OpenAI {
345325
export type RequestOptions = Core.RequestOptions;
346326

@@ -664,4 +644,21 @@ const API_KEY_SENTINEL = '<Missing Key>';
664644

665645
// ---------------------- End Azure ----------------------
666646

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+
667664
export default OpenAI;

0 commit comments

Comments
 (0)