Skip to content

AlibabaEmbeddingRequest

Namespace: Vercel.AI.Alibaba

public sealed class AlibabaEmbeddingRequest

Alibaba embedding request.

Inheritance: object

View source

AlibabaEmbeddingRequest(IReadOnlyList<string>)

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

Creates a request for <code class=“paramref”>values</code>.

Parameters

Name Type Description
values IReadOnlyList<string>

View source

public int? Dimension { get; set; }

parameters.dimension, when set.

Value: int?

View source

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

Headers merged over the provider headers.

Value: IDictionary<string, string>

View source

public string? OutputType { get; set; }

parameters.output_type. sparse is rejected before the request.

Value: string

View source

public string? TextType { get; set; }

parameters.text_type, when set.

Value: string

View source

public IReadOnlyList<string> Values { get; }

Texts to embed.

Value: IReadOnlyList<string>

View source

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