setup OpenAI ChatGPT()
With this function, you can establish an OpenAI ChatGPT API Session.
Several individual sessions can be established, each session having its own prompt and chat history. After the end of phase 3, all sessions are removed.
Parameters
Parameter |
Description |
a |
(optional) Freely assignable session key. If nothing is specified here, a fixed internal session key is used. With individual session keys, multiple instances of ChatGPT sessions can be built up, where each instance has its own prompt and chat history. After the end of phase 3 all instances are removed (also the internal one). |
b |
"true", if the session is to be established via a DMZ server (if available). Default: "false". |
c |
Your OpenAI organization ID . |
d |
Your OpenAI API bearer token . |
e |
(optional) The ChatGPT model to be used . If nothing is specified, the latest is used. |
f |
The sampling temperature. Higher values will make the output more random/creative, while lower values will make it more focused and deterministic. Allowed values: " 0.1" to " 1" . |
g |
The maximum number of tokens to generate in the chat completion . Allowed values : " 1" to " 4096" . |
h |
(optional) Content for the role " system" . Example: You are a database SQL expert and answer questions related to SQL statements. |