-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: re-export chat completion types at the top level, and work arou…
…nd webpack limitations (#365) - eliminate circular imports, which cause runtime errors in webpack dev bundles - move `n_epochs` under `hyperparameters`
- Loading branch information
1 parent
fc71a4b
commit bb815d0
Showing
20 changed files
with
194 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
|
||
import { APIResource } from 'openai/resource'; | ||
import { Transcriptions } from './transcriptions'; | ||
import { Translations } from './translations'; | ||
import * as API from './index'; | ||
import * as TranscriptionsAPI from 'openai/resources/audio/transcriptions'; | ||
import * as TranslationsAPI from 'openai/resources/audio/translations'; | ||
|
||
export class Audio extends APIResource { | ||
transcriptions: Transcriptions = new Transcriptions(this.client); | ||
translations: Translations = new Translations(this.client); | ||
transcriptions: TranscriptionsAPI.Transcriptions = new TranscriptionsAPI.Transcriptions(this.client); | ||
translations: TranslationsAPI.Translations = new TranslationsAPI.Translations(this.client); | ||
} | ||
|
||
export namespace Audio { | ||
export import Transcriptions = API.Transcriptions; | ||
export import Transcription = API.Transcription; | ||
export import TranscriptionCreateParams = API.TranscriptionCreateParams; | ||
|
||
export import Translations = API.Translations; | ||
export import Translation = API.Translation; | ||
export import TranslationCreateParams = API.TranslationCreateParams; | ||
export import Transcriptions = TranscriptionsAPI.Transcriptions; | ||
export type Transcription = TranscriptionsAPI.Transcription; | ||
export type TranscriptionCreateParams = TranscriptionsAPI.TranscriptionCreateParams; | ||
export import Translations = TranslationsAPI.Translations; | ||
export type Translation = TranslationsAPI.Translation; | ||
export type TranslationCreateParams = TranslationsAPI.TranslationCreateParams; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
|
||
import { APIResource } from 'openai/resource'; | ||
import { Completions } from './completions'; | ||
import * as API from './index'; | ||
import * as CompletionsAPI from 'openai/resources/chat/completions'; | ||
|
||
export class Chat extends APIResource { | ||
completions: Completions = new Completions(this.client); | ||
completions: CompletionsAPI.Completions = new CompletionsAPI.Completions(this.client); | ||
} | ||
|
||
export namespace Chat { | ||
export import Completions = API.Completions; | ||
export import ChatCompletion = API.ChatCompletion; | ||
export import ChatCompletionChunk = API.ChatCompletionChunk; | ||
export import ChatCompletionMessage = API.ChatCompletionMessage; | ||
export import ChatCompletionMessageParam = API.ChatCompletionMessageParam; | ||
export import ChatCompletionRole = API.ChatCompletionRole; | ||
export import CreateChatCompletionRequestMessage = API.CreateChatCompletionRequestMessage; | ||
export import ChatCompletionCreateParams = API.ChatCompletionCreateParams; | ||
export import CompletionCreateParams = API.CompletionCreateParams; | ||
export import ChatCompletionCreateParamsNonStreaming = API.ChatCompletionCreateParamsNonStreaming; | ||
export import CompletionCreateParamsNonStreaming = API.CompletionCreateParamsNonStreaming; | ||
export import ChatCompletionCreateParamsStreaming = API.ChatCompletionCreateParamsStreaming; | ||
export import CompletionCreateParamsStreaming = API.CompletionCreateParamsStreaming; | ||
export import Completions = CompletionsAPI.Completions; | ||
export type ChatCompletion = CompletionsAPI.ChatCompletion; | ||
export type ChatCompletionChunk = CompletionsAPI.ChatCompletionChunk; | ||
export type ChatCompletionMessage = CompletionsAPI.ChatCompletionMessage; | ||
export type ChatCompletionMessageParam = CompletionsAPI.ChatCompletionMessageParam; | ||
export type ChatCompletionRole = CompletionsAPI.ChatCompletionRole; | ||
export type CreateChatCompletionRequestMessage = CompletionsAPI.CreateChatCompletionRequestMessage; | ||
export type ChatCompletionCreateParams = CompletionsAPI.ChatCompletionCreateParams; | ||
export type CompletionCreateParams = CompletionsAPI.CompletionCreateParams; | ||
export type ChatCompletionCreateParamsNonStreaming = CompletionsAPI.ChatCompletionCreateParamsNonStreaming; | ||
export type CompletionCreateParamsNonStreaming = CompletionsAPI.CompletionCreateParamsNonStreaming; | ||
export type ChatCompletionCreateParamsStreaming = CompletionsAPI.ChatCompletionCreateParamsStreaming; | ||
export type CompletionCreateParamsStreaming = CompletionsAPI.CompletionCreateParamsStreaming; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.