Skip to content

ModelOptionsSerialization

Namespace: Vercel.AI.ProviderUtils

public static class ModelOptionsSerialization

Serializes model options for a workflow boundary. Maps to serializeModelOptions.

Inheritance: object

View source

SerializeModelOptions(string, IReadOnlyDictionary<string, object?>)

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

Copies JSON-serializable config values. A function-valued headers entry is invoked. Asynchronous headers throw SerializationError.

Parameters

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

Returns: SerializedModelOptions

View source

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