Skip to content

Commit

Permalink
feat: re-export chat completion types at the top level (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Aug 30, 2023
1 parent 19c99fb commit 1a71a39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,14 @@ export namespace OpenAI {

export import Chat = API.Chat;

export import ChatCompletion = API.ChatCompletion;
export import ChatCompletionChunk = API.ChatCompletionChunk;
export import ChatCompletionMessage = API.ChatCompletionMessage;
export import ChatCompletionMessageParam = API.ChatCompletionMessageParam;
export import ChatCompletionCreateParams = API.ChatCompletionCreateParams;
export import ChatCompletionCreateParamsNonStreaming = API.ChatCompletionCreateParamsNonStreaming;
export import ChatCompletionCreateParamsStreaming = API.ChatCompletionCreateParamsStreaming;

export import Edits = API.Edits;
export import Edit = API.Edit;
export import EditCreateParams = API.EditCreateParams;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec by Stainless.

export * from './chat';
export { Audio } from './audio/audio';
export { Chat } from './chat/chat';
export {
Completion,
CompletionChoice,
Expand Down

0 comments on commit 1a71a39

Please sign in to comment.