AI Completions
AI Completions
Generates a completion based on chat history. Currently, the supported AI engine for the text generation is https://platform.openai.com/.
Prerequisite: Using the AI service requires an API token, you have to either configure your own OpenAI account, or use the Emporix one. To configure your own OpenAI token, use the configuration service by storing the token under the openAiApiToken key.
If you don't provide your own OpenAI token, the Emporix one is used with the following limits: 3 mln input tokens and 1 mln output tokens. When you reach the limit, the next requests are rejected and you have to provide your own OpenAI token. Emporix uses the gpt-4o-mini model by default. If you want to use your own OpenAI account with a different AI model, please contact our Emporix Support Team to negotiate the model and usage.
- : Needed to execute actions related to the AI completions.
Your Emporix tenant name.
Note: The tenant name should always be provided in lowercase.
Identifier of the request. The value is not mandatory - if provided, then the ID is returned in the text generation response.
The request was syntactically incorrect.
The authorization token is invalid or has expired.
Authorization scopes of the access token are not sufficient and do not match the scopes required by the endpoint.
A server-side error occurred.
Last updated
Was this helpful?

