ExperimentalStaticcreateExperimental
Creates a pre-configured SapOpenAi client for SAP AI Core.
Resolves the deployment and sets up authentication automatically.
The model parameter is omitted from chat.completions.create(), chat.completions.parse(),
embeddings.create(), and responses.create() — SAP AI Core routes requests via the deployment URL.
Options including model deployment, destination, API version, and client type. A plain model name string is accepted as shorthand for { deployment: modelName }.
A promise that resolves to a ready-to-use SapOpenAi instance.
A pre-configured client for SAP AI Core backed by the official
openaipackage. Handles deployment resolution, authentication, and SAP-specific headers automatically.The
modelparameter is removed fromchat.completions.create(),chat.completions.parse(),embeddings.create(), andresponses.create()signatures — SAP AI Core routes requests via the deployment URL, so themodelfield in the request body is not used.Only the endpoints supported by SAP AI Core are exposed (
chat,embeddings,responses). Use SapOpenAi.createClient to create an instance. This class is experimental and may change at any time without prior notice.