chat

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Artificial Intelligence
Introduced first in SolidGeometry 5.5, Creation date: 2025-04-13, Last change: 2025-08-17

single line communication with openAI's chat gpt with persistent chat history

Description

In longer conversations with a lot of text to analyze, this function will lead to an error by etensive use of the openAI models in OpenAIrequest

chat1 - sends a single line to openAI API without history
chat - opens a single line conversation using the chat history
chatGPT - opens the chatGPT web browser interface
chatweb - opens the chatGPT web browser interface

Uses OpenAIrequest. Make sure that your openAI API secret key is stored in a file called "OPENAI_API_KEY.env"


See Also: chat1 , chatweb , chatGPT , OpenAIrequest

Example Illustration

 missing image of chat()

Syntax

y=chat([])

Output Parameter

y: Response from openAI when using your paid openAI API account

Examples

% Difference between chat and chath
chat1 what is the age of joe biden
chat1 what ist the age of his wife
chat what is the age of joe biden
chat what ist the age of his wife
chat clear % löscht die Erinnerung
chat what ist the age of his wife




Copyright 2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21