Skip to content

ScaleDownProviderSettings

Namespace: Vercel.AI.ScaleDown

public sealed class ScaleDownProviderSettings

ScaleDown provider settings. Maps to ScaleDownProviderSettings.

Inheritance: object

View source

public string? ApiKey { get; set; }

API key. Defaults to the SCALEDOWN_API_KEY environment variable, read when a request is made.

Value: string

View source

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

Resolves the API key on every request. Takes precedence over ApiKey. Maps to an async apiKey function.

Value: Func<CancellationToken, Task<string>>

View source

public string? BaseUrl { get; set; }

API base URL. Defaults to https://api.scaledown.xyz.

Value: string

View source

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

Headers sent with every request.

Value: IDictionary<string, string>

View source

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