Skip to content

SubquadraticModelCatalog

Namespace: Vercel.AI.Subquadratic

public static class SubquadraticModelCatalog

Known SubQ model ids, the adapter limits, the request defaults and the capability catalog. Upstream subquadratic-model-catalog.ts.

Inheritance: object

View source

public const int DecisionMaxChoiceOptions = 255

Most options of a choice question. Upstream subquadraticDecisionModelLimits.maxChoiceOptions.

Value: int

View source

public const int DecisionMaxQuestions = 128

Most questions per request. Upstream subquadraticDecisionModelLimits.maxQuestions.

Value: int

View source

public const int DecisionMaxScoreLevels = 10

Most levels of a score question. Upstream subquadraticDecisionModelLimits.maxScoreLevels.

Value: int

View source

public const int DecisionMinChoiceOptions = 2

Fewest options of a choice question. Upstream subquadraticDecisionModelLimits.minChoiceOptions.

Value: int

View source

public const int DecisionMinScoreLevels = 2

Fewest levels of a score question. Upstream subquadraticDecisionModelLimits.minScoreLevels.

Value: int

View source

public static readonly IReadOnlyList<string> DecisionModelIds

Known decision model ids. Other ids are passed through unchanged. Upstream decisionModelIds.

Value: IReadOnlyList<string>

View source

public static readonly IReadOnlyList<string> DecisionSupportedQuestionTypes

Question types SubQ Decisions supports. Upstream subquadraticDecisionModelLimits.supportedQuestionTypes.

Value: IReadOnlyList<string>

View source

public static readonly IReadOnlyDictionary<string, ModelEntry<object>> Entries

Entries of every known model id. Upstream subquadraticModelCatalog; renamed because C# does not allow a member named like its class.

Value: IReadOnlyDictionary<string, ModelEntry<object>>

View source

public static readonly IReadOnlyList<string> LanguageModelIds

Known language model ids. Other ids are passed through unchanged. Upstream languageModelIds.

Value: IReadOnlyList<string>

View source

public static readonly ProviderOptionDefinitions ProviderOptions

Known options accepted under providerOptions. Upstream subquadraticProviderOptions.

Value: ProviderOptionDefinitions

View source

public static readonly IReadOnlyDictionary<string, string> ReasoningEffortMap

SubQ runs minimal, medium and xhigh as low, high and max, and rejects none because reasoning cannot be disabled. Upstream subquadraticRequestDefaults.language.reasoningEffortMap.

Value: IReadOnlyDictionary<string, string>

View source

public const bool SupportsStructuredOutputs = true

Whether SubQ chat completions accept structured outputs. Upstream subquadraticRequestDefaults.language.supportsStructuredOutputs.

Value: bool

View source

public static ModelEntry<object> GetSubquadraticDecisionModelEntry(string modelId)

Returns the catalog entry of a decision model. Upstream getSubquadraticDecisionModelEntry.

Parameters

Name Type Description
modelId string

Returns: ModelEntry&lt;object&gt;

View source

public static ModelEntry<object> GetSubquadraticLanguageModelEntry(string modelId)

Returns the catalog entry of a language model. Upstream getSubquadraticLanguageModelEntry.

Parameters

Name Type Description
modelId string

Returns: ModelEntry&lt;object&gt;

View source

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