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

    Function createBatchInput

    • Experimental

      Creates a JSONL Blob for upload via FileApi from typed chat completion requests. Each request is assigned a sequential custom_id (request-1, request-2, ...).

      Parameters

      • requests: AzureOpenAiCreateChatCompletionRequest[]

        Chat completion requests to include in the batch.

      Returns Blob

      A Blob containing one JSON object per line. This API is experimental and may change at any time without prior notice.

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