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

    Interface SapOpenAiOptions

    Options for creating a pre-configured Azure OpenAI client or config for SAP AI Core.

    interface SapOpenAiOptions {
        apiVersion?: string;
        clientType?: string;
        deployment: ModelDeployment<SapModelName>;
        destination?: HttpDestinationOrFetchOptions;
    }

    Hierarchy

    Index
    apiVersion?: string

    Azure OpenAI API version. Defaults to '2024-10-21'.

    clientType?: string

    Additional client types appended to the ai-client-type header with the preconfigured AI SDK JavaScript value.

    Model deployment: a model name string, { modelName, modelVersion? }, or { deploymentId }. An optional resourceGroup can be included in the object form.

    destination?: HttpDestinationOrFetchOptions

    Optional custom destination. Defaults to the aicore service binding or AICORE_SERVICE_KEY env var.