Skip to content

SerializedModelOptions

Namespace: Vercel.AI.ProviderUtils

public sealed class SerializedModelOptions

A serialized model id and config. Maps to the result of serializeModelOptions.

Inheritance: object

View source

SerializedModelOptions(string, Dictionary<string, object?>)

Section titled “SerializedModelOptions(string, Dictionary<string, object?>)”
public SerializedModelOptions(string modelId, Dictionary<string, object?> config)

Creates the serialized form.

Parameters

Name Type Description
modelId string
config Dictionary<string, object>

View source

public Dictionary<string, object?> Config { get; }

JSON-serializable configuration.

Value: Dictionary<string, object>

View source

public string ModelId { get; }

Model id.

Value: string

View source

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