Skip to content

ScaleDownDecisionModelConfig

Namespace: Vercel.AI.ScaleDown

public class ScaleDownDecisionModelConfig

Settings for a DecisionScaleDownModel.

Inheritance: object

View source

public string BaseUrl { get; set; }

API base URL, without a trailing slash.

Value: string

View source

public Func<IReadOnlyDictionary<string, string>>? Headers { get; set; }

Provider headers, resolved on every call. When null, the model sends the x-api-key read from SCALEDOWN_API_KEY at call time.

Value: Func<IReadOnlyDictionary<string, string>>

View source

public Func<CancellationToken, Task<IReadOnlyDictionary<string, string>>>? HeadersAsync { get; set; }

Provider headers that need an asynchronous step, such as an async API key. Used when Headers is null. Not serializable: Serialize throws SerializationError, as upstream does for an async headers.

Value: Func<CancellationToken, Task<IReadOnlyDictionary<string, string>>>

View source

public HttpClient? HttpClient { get; set; }

HTTP client. Not serialized.

Value: HttpClient

View source

public string Provider { get; set; }

Provider id, such as scaledown.decision.

Value: string

View source

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