Git Product home page Git Product logo

ofxchatgpt's Introduction

ofxChatGPT

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.

Setup

  1. Download this repository and place it in your addons folder.
  2. Obtain the necessary API key and set it in your ofApp.cpp file as mentioned in the example.
  3. Add ofxChatGPT to your addons.make file.

Examples

This addon includes three examples:

  1. example-basic: A simple example using the chat() method with hardcoded input and GPT responses.
  2. example-with-history: An example using the chatWithHistory() method to maintain the conversation history while interacting with GPT.
  3. example-textinputfield: An example using ofxTextInputField to allow users to enter text directly in the application window and send it to GPT.

Dependencies

This addon requires an internet connection to work, as it communicates with the GPT API to generate responses.

License

This addon is released under the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.