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

    Class SapEmbeddingsExperimental

    Wraps Embeddings exposing only create, with model omitted from the public API as SAP AI Core routes requests via the deployment URL. This class is experimental and may change at any time without prior notice.

    Index
    • Internal

      Parameters

      • client: OpenAI

      Returns SapEmbeddings

    • Experimental

      Creates an embedding request. The model field is omitted — SAP AI Core routes requests via the deployment URL.

      Parameters

      • body: WithOptionalModel<EmbeddingCreateParams, AzureOpenAiEmbeddingModel>

        Embedding request parameters.

      • Optionaloptions: RequestOptions

        Optional request options.

      Returns APIPromise<CreateEmbeddingResponse>

      A promise resolving to a CreateEmbeddingResponse.