Skip to content

EmbeddingCallOptions

Namespace: Vercel.AI.Provider

public sealed class EmbeddingCallOptions

Per-call embedding settings. Maps to the options of doEmbed.

Inheritance: object

View source

EmbeddingCallOptions(IReadOnlyList<string>)

Section titled “EmbeddingCallOptions(IReadOnlyList<string>)”
public EmbeddingCallOptions(IReadOnlyList<string> values)

Creates call options.

Parameters

Name Type Description
values IReadOnlyList<string>

View source

public int? Dimensions { get; set; }

Requested vector width. A provider option for the same setting wins.

Value: int?

View source

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

Headers for this call. They override the provider headers.

Value: IReadOnlyDictionary<string, string>

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }

Provider options, keyed by provider id.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public string? User { get; set; }

End-user identifier.

Value: string

View source

public IReadOnlyList<string> Values { get; }

Values to embed.

Value: IReadOnlyList<string>

View source

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