@sap-ai-sdk/foundation-models
Version:
SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.
26 lines • 914 B
TypeScript
import type { HttpResponse } from '@sap-cloud-sdk/http-client';
import type { AzureOpenAiEmbeddingOutput } from './azure-openai-embedding-types.js';
/**
* Azure OpenAI embedding response.
*/
export declare class AzureOpenAiEmbeddingResponse {
readonly rawResponse: HttpResponse;
/**
* The embedding response.
*/
readonly data: AzureOpenAiEmbeddingOutput;
constructor(rawResponse: HttpResponse);
/**
* Parses the Azure OpenAI response and returns the embedding.
* @param dataIndex - The index of the data to parse.
* @returns The embedding vector.
*/
getEmbedding(dataIndex?: number): number[] | undefined;
/**
* Parses the Azure OpenAI response and returns all embeddings.
* @returns The embedding vectors.
*/
getEmbeddings(): number[][];
private logInvalidDataIndex;
}
//# sourceMappingURL=azure-openai-embedding-response.d.ts.map