Creates an instance of the Azure OpenAI chat client.
This configuration is used to retrieve a deployment. Depending on the configuration use either the given deployment ID or the model name to retrieve matching deployments. If model and deployment ID are given, the model is verified against the deployment.
Optionaldestination: The destination to use for the request.
OptionalserviceBindingTransformFn?: ServiceBindingTransformFunctionCustom transformation function to control how a Destination is built from the given Service.
The name of the destination to retrieve from service bindings.
Optionalservice?: undefinedCreates a completion for the chat messages.
Request containing chat completion input parameters.
OptionalrequestConfig: CustomRequestConfigThe request configuration.
The completion result.
Creates a completion stream for the chat messages.
Request containing chat completion input parameters.
Optionalsignal: AbortSignalThe abort signal.
OptionalrequestConfig: CustomRequestConfigThe request configuration.
A response containing the chat completion stream.
Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.
Azure OpenAI client for chat completion.