Skip to content

TencentModelCatalog

Namespace: Vercel.AI.Tencent

public static class TencentModelCatalog

Known Tencent model ids and the per-model policy. Upstream tencent-model-catalog.ts.

Inheritance: object

View source

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

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

Value: IReadOnlyDictionary<string, ModelEntry<TencentRequestConfig>>

View source

public static readonly IReadOnlyList<string> TencentLanguageModelIds

TokenHub language model ids.

Value: IReadOnlyList<string>

View source

public static readonly IReadOnlyList<string> TencentVideoModelIds

Video model ids.

Value: IReadOnlyList<string>

View source

public static readonly IReadOnlyList<string> TokenHubOnlyOptions

Options that only TokenHub Kling models read.

Value: IReadOnlyList<string>

View source

public static readonly IReadOnlyList<string> VodOnlyOptions

Options that only VOD models read.

Value: IReadOnlyList<string>

View source

public static ModelEntry<TencentRequestConfig> GetTencentLanguageModelEntry(string modelId)

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

Parameters

Name Type Description
modelId string

Returns: ModelEntry&lt;TencentRequestConfig&gt;

View source

public static ModelEntry<TencentRequestConfig> GetTencentVideoModelEntry(string modelId)

Returns the catalog entry of a video model. Upstream getTencentVideoModelEntry.

Parameters

Name Type Description
modelId string

Returns: ModelEntry&lt;TencentRequestConfig&gt;

View source

public static TencentVideoRequestConfig GetTencentVideoRequestConfig(string modelId)

Request-shaping policy for a video model. Upstream getTencentVideoModelEntry(modelId).requestConfig.video.

Parameters

Name Type Description
modelId string

Returns: TencentVideoRequestConfig

View source

public static ParsedTencentVideoModelId? ParseTencentVideoModelId(string modelId)

Parses a video model id. Returns null for an id that is neither a TokenHub Kling nor a VOD id.

Parameters

Name Type Description
modelId string

Returns: ParsedTencentVideoModelId

View source

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