An addon for openFrameworks to interact with ChatGPT within your application. This addon is based on OpenAI's GPT-4 and allows for real-time text-based conversations.
This addon was created by ChatGPT at the request of tettou771.
- Download this repository and place it in your
addons
folder. - Obtain the necessary API key and set it in your
ofApp.cpp
file as mentioned in the example. - Add
ofxChatGPT
to youraddons.make
file.
This addon includes three examples:
example-basic
: A simple example using thechat()
method with hardcoded input and GPT responses.example-with-history
: An example using thechatWithHistory()
method to maintain the conversation history while interacting with GPT.example-textinputfield
: An example usingofxTextInputField
to allow users to enter text directly in the application window and send it to GPT.
This addon requires an internet connection to work, as it communicates with the GPT API to generate responses.
This addon is released under the MIT License.