
For accessing OpenAI’s Chat API.
OpenAPI Wiki - Introduction - OpenAI API
<aside>
💡 OpenAI API key must be set either in Settings > Artificial Intelligence or by setting an Environment Variable named OPENAI_API_KEY
</aside>
Inputs
- system - the pre-prompt system message
- message - the message
- chatlog - for providing a ready made chatlog; overrides the local chat log
- role - message role; can be user, system, or assistant
- user - the unique identifier for the user; local chat log is saved based on this
Outputs
- response - the response from the API
- new-chatlog - the new chatlog