SAP AI SDK for JavaScript - v2.15.0
    Preparing search index...

    Class AzureOpenAiEmbeddingResponse

    Azure OpenAI embedding response.

    Index
    _data: AzureOpenAiEmbeddingOutput
    rawResponse: HttpResponse

    The embedding response.

    • Parses the Azure OpenAI response and returns the embedding.

      Parameters

      • OptionaldataIndex: number

        The index of the data to parse.

      Returns number[] | undefined

      The embedding vector.

    • Parses the Azure OpenAI response and returns all embeddings.

      Returns number[][]

      The embedding vectors.

    • Gets the request ID from the response headers.

      Returns string | undefined

      The request ID, or undefined if the header is not present.