InternalPipe the stream through a processing function.
The function to process the input stream.
Optionalresponse: AzureOpenAiChatCompletionStreamResponse<any>The AzureOpenAiChatCompletionStreamResponse object for process function to store finish reason, token usage, etc.
The output stream containing processed items.
OptionalchoiceIndex: numberStatic_InternalCreate a chat completion stream based on the http response.
Http response.
Chat completion stream.
Static_InternalWrap raw chunk data with chunk response class to provide helper functions.
Chat completion stream.
Static_InternalTransform a stream of chunks into a stream of content strings.
Chat completion stream.
OptionalchoiceIndex: numberThe index of the choice to parse.
Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.
Static_Static_Static_Protected Statictransform
Chat completion stream containing post-processing functions.