AlibabaEmbeddingRequest
Namespace: Vercel.AI.Alibaba
public sealed class AlibabaEmbeddingRequestAlibaba embedding request.
Inheritance: object
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”Dimension
Section titled “Dimension”public int? Dimension { get; set; }parameters.dimension, when set.
Value: int?
Headers
Section titled “Headers”public IDictionary<string, string>? Headers { get; set; }Headers merged over the provider headers.
Value: IDictionary<string, string>
OutputType
Section titled “OutputType”public string? OutputType { get; set; }parameters.output_type. sparse is rejected before the request.
Value: string
TextType
Section titled “TextType”public string? TextType { get; set; }parameters.text_type, when set.
Value: string
Values
Section titled “Values”public IReadOnlyList<string> Values { get; }Texts to embed.
Value: IReadOnlyList<string>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product