ScaleDownExtractionModelConfig
Namespace: Vercel.AI.ScaleDown
public class ScaleDownExtractionModelConfigSettings for a ScaleDownExtractionModel. Maps to ScaleDownExtractionModelConfig.
Inheritance: object
Properties
Section titled “Properties”BaseUrl
Section titled “BaseUrl”public string BaseUrl { get; set; }API base URL, without a trailing slash.
Value: string
Headers
Section titled “Headers”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>>
HeadersAsync
Section titled “HeadersAsync”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>>>
HttpClient
Section titled “HttpClient”public HttpClient? HttpClient { get; set; }HTTP client. Not serialized.
Value: HttpClient
Provider
Section titled “Provider”public string Provider { get; set; }Provider id, such as scaledown.extraction.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product