Skip to content

LiquidProvider

Namespace: Vercel.AI.Liquid

public sealed class LiquidProvider : OpenAICompatibleProvider, IDecisionProvider

Liquid provider. It supports experimental decision models.

Inheritance: object → ProviderBase → OpenAICompatibleProvider

Implements: IDecisionProvider

View source

LiquidProvider(HttpClient, OpenAICompatibleOptions?)

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

Creates a provider. The API key is read when a model is used, not here.

Parameters

Name Type Description
httpClient HttpClient
options OpenAICompatibleOptions

View source

public const string DefaultBaseUrl = "https://api.liquid.ai"

Default API origin.

Value: string

View source

public const string ProviderId = "liquid"

Provider id.

Value: string

View source

Create(OpenAICompatibleOptions?, HttpMessageHandler?)

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

Creates a provider.

Parameters

Name Type Description
options OpenAICompatibleOptions
handler HttpMessageHandler

Returns: LiquidProvider

View source

public DecisionLiquidModel DecisionModel(string modelId)

Creates an experimental decision model using the Liquid Decisions API. The provider id is liquid.decision. Maps to decisionModel.

Parameters

Name Type Description
modelId string

Returns: DecisionLiquidModel

View source

public override ILanguageModel LanguageModel(string modelId)

Returns a language model.

Parameters

Name Type Description
modelId string

Returns: ILanguageModel

View source

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