Skip to content

EmbeddingResponseInfo

Namespace: Vercel.AI.Provider

public sealed class EmbeddingResponseInfo

Raw HTTP response of an embedding call. Maps to response of doEmbed.

Inheritance: object

View source

EmbeddingResponseInfo(IReadOnlyDictionary<string, string>?, string?)

Section titled “EmbeddingResponseInfo(IReadOnlyDictionary<string, string>?, string?)”
public EmbeddingResponseInfo(IReadOnlyDictionary<string, string>? headers, string? body)

Creates response info.

Parameters

Name Type Description
headers IReadOnlyDictionary<string, string>
body string

View source

public string? Body { get; }

Raw HTTP response body.

Value: string

View source

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

HTTP response headers.

Value: IReadOnlyDictionary<string, string>

View source

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