EmbeddingModelCall
Namespace: Vercel.AI.Operations
public sealed class EmbeddingModelCallArguments for one doEmbed call.
Inheritance: object
Constructors
Section titled “Constructors”EmbeddingModelCall(IReadOnlyList<string>, IReadOnlyDictionary<string, string>, JsonElement?, CancellationToken, int?)
Section titled “EmbeddingModelCall(IReadOnlyList<string>, IReadOnlyDictionary<string, string>, JsonElement?, CancellationToken, int?)”public EmbeddingModelCall(IReadOnlyList<string> values, IReadOnlyDictionary<string, string> headers, JsonElement? providerOptions, CancellationToken cancellationToken, int? dimensions = null)Creates a model call.
Parameters
| Name | Type | Description |
|---|---|---|
values |
IReadOnlyList<string> | |
headers |
IReadOnlyDictionary<string, string> | |
providerOptions |
JsonElement? | |
cancellationToken |
CancellationToken | |
dimensions |
int? |
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”public CancellationToken CancellationToken { get; }Cancellation token.
Value: CancellationToken
Dimensions
Section titled “Dimensions”public int? Dimensions { get; }Requested output dimensions. Null when the caller did not ask for any.
Value: int?
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Headers, including the user-agent suffix.
Value: IReadOnlyDictionary<string, string>
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; }Provider options for this chunk.
Value: JsonElement?
Values
Section titled “Values”public IReadOnlyList<string> Values { get; }Values in this call.
Value: IReadOnlyList<string>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product