FishAudioProvider
Namespace: Vercel.AI.FishAudio
public sealed class FishAudioProvider : OpenAICompatibleProviderFishAudio provider.
Inheritance: object → ProviderBase → OpenAICompatibleProvider
Constructors
Section titled “Constructors”FishAudioProvider(HttpClient, OpenAICompatibleOptions?)
Section titled “FishAudioProvider(HttpClient, OpenAICompatibleOptions?)”public FishAudioProvider(HttpClient httpClient, OpenAICompatibleOptions? options = null)Creates a provider.
Parameters
| Name | Type | Description |
|---|---|---|
httpClient |
HttpClient | |
options |
OpenAICompatibleOptions |
Fields
Section titled “Fields”DefaultBaseUrl
Section titled “DefaultBaseUrl”public const string DefaultBaseUrl = "https://api.fish.audio"Default API origin.
Value: string
ProviderId
Section titled “ProviderId”public const string ProviderId = "fish-audio"Provider id.
Value: string
ProviderOptionsKey
Section titled “ProviderOptionsKey”public const string ProviderOptionsKey = "fishAudio"Key of the Fish Audio entry in provider options.
Value: string
Properties
Section titled “Properties”ErrorSchema
Section titled “ErrorSchema”public static JsonObject ErrorSchema { get; }Schema of a Fish Audio error body.
Value: JsonObject
Methods
Section titled “Methods”Create(OpenAICompatibleOptions?, HttpMessageHandler?)
Section titled “Create(OpenAICompatibleOptions?, HttpMessageHandler?)”public static FishAudioProvider Create(OpenAICompatibleOptions? options = null, HttpMessageHandler? handler = null)Creates a provider.
Parameters
| Name | Type | Description |
|---|---|---|
options |
OpenAICompatibleOptions | |
handler |
HttpMessageHandler |
Returns: FishAudioProvider
LanguageModel(string)
Section titled “LanguageModel(string)”public override ILanguageModel LanguageModel(string modelId)Returns a language model.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ILanguageModel
Speech(string)
Section titled “Speech(string)”public ISpeechModel Speech(string modelId)Creates a speech model.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ISpeechModel
SpeechModel(string)
Section titled “SpeechModel(string)”public override ISpeechModel SpeechModel(string modelId)Returns a speech model.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ISpeechModel
Transcription()
Section titled “Transcription()”public ITranscriptionModel Transcription()Creates the default transcription model transcribe-1.
Returns: ITranscriptionModel
TranscriptionModel(string)
Section titled “TranscriptionModel(string)”public override ITranscriptionModel TranscriptionModel(string modelId)Returns a transcription model.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ITranscriptionModel
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product