Skip to content

AssemblyAIProvider

Namespace: Vercel.AI.AssemblyAI

public sealed class AssemblyAIProvider : OpenAICompatibleProvider

AssemblyAI provider.

Inheritance: object → ProviderBase → OpenAICompatibleProvider

View source

AssemblyAIProvider(HttpClient, OpenAICompatibleOptions?)

Section titled “AssemblyAIProvider(HttpClient, OpenAICompatibleOptions?)”
public AssemblyAIProvider(HttpClient httpClient, OpenAICompatibleOptions? options = null)

Creates a provider.

Parameters

Name Type Description
httpClient HttpClient
options OpenAICompatibleOptions

View source

public const string DefaultBaseUrl = "https://api.assemblyai.com"

Default API origin.

Value: string

View source

public const string ProviderId = "assemblyai"

Provider id.

Value: string

View source

Create(OpenAICompatibleOptions?, HttpMessageHandler?)

Section titled “Create(OpenAICompatibleOptions?, HttpMessageHandler?)”
public static AssemblyAIProvider Create(OpenAICompatibleOptions? options = null, HttpMessageHandler? handler = null)

Creates a provider.

Parameters

Name Type Description
options OpenAICompatibleOptions
handler HttpMessageHandler

Returns: AssemblyAIProvider

View source

public override ILanguageModel LanguageModel(string modelId)

Returns a language model.

Parameters

Name Type Description
modelId string

Returns: ILanguageModel

View source

public AssemblyAIProvider.AssemblyAITranscriptionModel Transcription(string modelId)

Creates the typed transcription model.

Parameters

Name Type Description
modelId string

Returns: AssemblyAIProvider.AssemblyAITranscriptionModel

View source

public override ITranscriptionModel TranscriptionModel(string modelId)

Returns a transcription model.

Parameters

Name Type Description
modelId string

Returns: ITranscriptionModel

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product