AI Completions
Was this helpful?
Was this helpful?
Generates a completion based on chat history. Currently supported AI engines for the completion:
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 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 to negotiate the model and usage.
###Required scopes###
ai.completion_manage
Identifier of the request. The value is not mandatory - if provided then the id is returned in the text generation response.