ScaleDownProvider
Namespace: Vercel.AI.ScaleDown
public sealed class ScaleDownProviderScaleDown’s experimental decision and extraction capabilities. It has no language, embedding, or image models.
Inheritance: object
Constructors
Section titled “Constructors”ScaleDownProvider(ScaleDownProviderSettings?, HttpClient?)
Section titled “ScaleDownProvider(ScaleDownProviderSettings?, HttpClient?)”public ScaleDownProvider(ScaleDownProviderSettings? options = null, HttpClient? httpClient = null)Creates a provider. Maps to createScaleDown.
Parameters
| Name | Type | Description |
|---|---|---|
options |
ScaleDownProviderSettings | |
httpClient |
HttpClient |
Fields
Section titled “Fields”ApiKeyEnvironmentVariable
Section titled “ApiKeyEnvironmentVariable”public const string ApiKeyEnvironmentVariable = "SCALEDOWN_API_KEY"Environment variable for the API key.
Value: string
DecisionProviderId
Section titled “DecisionProviderId”public const string DecisionProviderId = "scaledown.decision"Provider id of the decision model.
Value: string
DefaultBaseUrl
Section titled “DefaultBaseUrl”public const string DefaultBaseUrl = "https://api.scaledown.xyz"Default API origin.
Value: string
ExtractionProviderId
Section titled “ExtractionProviderId”public const string ExtractionProviderId = "scaledown.extraction"Provider id of the extraction model.
Value: string
Properties
Section titled “Properties”Default
Section titled “Default”public static ScaleDownProvider Default { get; }Provider that reads SCALEDOWN_API_KEY when a request is made. Maps to scaledown and scaleDown.
Value: ScaleDownProvider
SpecificationVersion
Section titled “SpecificationVersion”public string SpecificationVersion { get; }Specification version.
Value: string
Methods
Section titled “Methods”Create(ScaleDownProviderSettings?, HttpMessageHandler?)
Section titled “Create(ScaleDownProviderSettings?, HttpMessageHandler?)”public static ScaleDownProvider Create(ScaleDownProviderSettings? options = null, HttpMessageHandler? handler = null)Creates a provider. Pass a handler from tests. Maps to createScaleDown.
Parameters
| Name | Type | Description |
|---|---|---|
options |
ScaleDownProviderSettings | |
handler |
HttpMessageHandler |
Returns: ScaleDownProvider
DecisionModel(string)
Section titled “DecisionModel(string)”public DecisionScaleDownModel DecisionModel(string modelId)Creates a model for ScaleDown’s experimental Decisions API. The id may be one this library does not know yet.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: DecisionScaleDownModel
EmbeddingModel(string)
Section titled “EmbeddingModel(string)”public IEmbeddingModel EmbeddingModel(string modelId)ScaleDown has no embedding models.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: IEmbeddingModel
ExtractionModel(string)
Section titled “ExtractionModel(string)”public ScaleDownExtractionModel ExtractionModel(string modelId)Creates a model for ScaleDown’s experimental Extract API. The id may be one this library does not know yet. Maps to extractionModel.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ScaleDownExtractionModel
ImageModel(string)
Section titled “ImageModel(string)”public IImageModel ImageModel(string modelId)ScaleDown has no image models.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: IImageModel
LanguageModel(string)
Section titled “LanguageModel(string)”public ILanguageModel LanguageModel(string modelId)ScaleDown has no language models.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ILanguageModel
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product