EmbeddingCallOptions
Namespace: Vercel.AI.Provider
public sealed class EmbeddingCallOptionsPer-call embedding settings. Maps to the options of doEmbed.
Inheritance: object
Constructors
Section titled “Constructors”EmbeddingCallOptions(IReadOnlyList<string>)
Section titled “EmbeddingCallOptions(IReadOnlyList<string>)”public EmbeddingCallOptions(IReadOnlyList<string> values)Creates call options.
Parameters
| Name | Type | Description |
|---|---|---|
values |
IReadOnlyList<string> |
Properties
Section titled “Properties”Dimensions
Section titled “Dimensions”public int? Dimensions { get; set; }Requested vector width. A provider option for the same setting wins.
Value: int?
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string?>? Headers { get; set; }Headers for this call. They override the provider headers.
Value: IReadOnlyDictionary<string, string>
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }Provider options, keyed by provider id.
Value: IReadOnlyDictionary<string, JsonElement>
public string? User { get; set; }End-user identifier.
Value: string
Values
Section titled “Values”public IReadOnlyList<string> Values { get; }Values to embed.
Value: IReadOnlyList<string>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product