Documentation

Request Chat Completions - Open Dev Kit Documentation

Open Dev Kit Documentation :: Open AI :: Request Chat Completions

OpenAI.RequestChatCompletions(
  Model String,
  Options AI Completion Options,
  Messages AI Chat Message Array,
  Number Integer
) AI Result*
Given a list of messages describing a conversation, the model will return a response.

Parameters

Model String
The model to use.
Messages AI Chat Message Array
A list of messages describing the conversation so far.
Number Integer
How many completions to generate for each prompt. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for Max Tokens and Stop.

Return Value

AI Result*

If you think anything is missing, please feel free to: submit documentation feedback on this page