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

    Type Alias AzureOpenAiEmbeddingParameters

    AzureOpenAiEmbeddingParameters: {
        dimensions?: number | null;
        encoding_format?: string | null;
        input: string | string[];
        input_type?: string;
        user?: string;
    } & Record<string, any>

    Azure OpenAI embedding input parameters.

    Type Declaration

    • Optionaldimensions?: number | null

      The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models.

      1
      
    • Optionalencoding_format?: string | null

      The format to return the embeddings in. Can be either float or base64. Defaults to float.

      "float"
      
    • input: string | string[]

      Input text to get embeddings for, encoded as a string. To get embeddings for multiple inputs in a single request, pass an array of strings. Each input must not exceed 2048 tokens in length. Unless you are embedding code, we suggest replacing newlines (\n) in your input with a single space, as we have observed inferior results when newlines are present.

    • Optionalinput_type?: string

      Input type of embedding search to use.

      "query"
      
    • Optionaluser?: string

      A unique identifier representing your end-user, which can help monitoring and detecting abuse.

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.