Skip to content
providerkit
GitHub

OpenAITranscriptionConfig

Defined in: core/src/providers/openai-transcription.ts:32

apiKey: string;

Defined in: core/src/providers/openai-transcription.ts:34

“” sends no Authorization header, for a local server that wants none.


optional baseUrl?: string;

Defined in: core/src/providers/openai-transcription.ts:37

Default https://api.openai.com.


optional fetchImpl?: FetchLike;

Defined in: core/src/providers/openai-transcription.ts:46

Swapped in tests, or to route through a proxy. Defaults to global fetch.


optional headers?: Record<string, string>;

Defined in: core/src/providers/openai-transcription.ts:44


optional id?: string;

Defined in: core/src/providers/openai-transcription.ts:43

The preset id. Names the provider in errors and on TranscriptionProvider.id. Default “openai”.


optional maxAudioBytes?: number;

Defined in: core/src/transcription-core.ts:87

Largest recording sent, in bytes. Default 25 MiB, OpenAI’s documented limit; Deepgram’s own wire defaults to its 2 GB. Over it is refused before any request. Never cut.

TranscriptionLimits.maxAudioBytes


model: string;

Defined in: core/src/providers/openai-transcription.ts:35


optional path?: string;

Defined in: core/src/providers/openai-transcription.ts:40

Default /v1/audio/transcriptions, or /audio/transcriptions when the base already ends in a version.


optional siteName?: string;

Defined in: core/src/attribution.ts:15

App name, sent as X-Title (e.g. “Your App”).

Attribution.siteName


optional siteUrl?: string;

Defined in: core/src/attribution.ts:13

Site URL, sent as HTTP-Referer (e.g. “https://your.app”).

Attribution.siteUrl


optional timeoutMs?: number;

Defined in: core/src/transcription-core.ts:90

One deadline for the whole call: the upload, the work and the reply. Default 600,000: ten minutes, past which Deepgram itself answers 504.

TranscriptionLimits.timeoutMs