chat with ChatGPT()

This function can be used to make requests to an existing ChatGPT session a.

You can use parameters d and e to ask questions about images. Note: In this case, it does not make sense to use the AI session for 'normal' text chats and no complete chat history is kept. Note: Only the model 'gpt-4-vision-preview' is currently supported.

The return value of the function is the response from ChatGPT. See also p arameter c .

Parameters


Parameter

Description

a

(optional) Chat session k ey. Note: If no specific session key is set, the internal session key is used. See functions setup OpenAI ChatGPT() and setup Azure ChatGPT() .

b

The question for ChatGPT (so the content of role user ).

c

(optional) If true, the full JSON API response is returned (instead of just the content of role assistant). Default: false .

d

(optional) List of images. The images can be specified as URL (starting with http: or https:) or Base64 string (JPEG). You can mix both formats in the list. If there are several images in the list, all of them will be taken into account when questions are asked.

Examples: URL_Base64_image.txt

e

(optional) Image resolution. Allowed values: low, high. Note: If an incorrect value is set here, the image may not be recognized. See also https://platform.openai.com/docs/guides/vision .