Frends.OpenAI.CallChatGPT / 1.1.0
Summary
Sends a conversation to OpenAI's chat completion API against a chosen model and returns the completion. The output is generated text, so it varies between calls and is not guaranteed to be well-formed or correct.
Typical use — summarising, classifying and drafting inside a Process — validate the output before acting on it, keep a person in the loop where it affects people or personal data, and send no more data than the prompt genuinely needs
Input for the task.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Model | String |
gpt-3.5-turbo |
gpt-3.5-turbo |
Chat GPT model to use. Find a list of available models from https://platform.openai.com/docs/models. |
| ApiKeySecret | String |
– | 1234567qwerty |
Chat GPT API key. |
| Messages | InputMessage[] |
– | [
{ "Content": "How are you?", "Role": "User" },
{ "Content": "I'm fine, thanks. How about you?", "Role": "System" },
{ "Content": "I'm fine too.", "Role": "User" }
]
|
Array of messages to send to Chat GPT. |