Skip to content

DanielSamp4/ArduinoChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArduinoChatGPT

Library for Arduino that allows users to chat with the GPT model from OpenAI.

Description

ArduinoChatGPT is a library that enables Arduino users to communicate with OpenAI's GPT natural language model. The library uses OpenAI's API to send messages and receive responses from the GPT model.

Installation

  1. Download the ArduinoChatGPT repository.

  2. Extract the .zip file to your Arduino libraries folder (usually located at C:\Users\<your user>\Documents\Arduino\libraries on Windows, or ~/Documents/Arduino/libraries on macOS and Linux).

  3. Open the Arduino IDE and go to Sketch > Include Library > ArduinoChatGPT. This will add the library to your project.

Usage

  1. In your Arduino sketch, include the ArduinoChatGPT.h header file:

    #include <ArduinoChatGPT.h>
  2. Create an instance of the ArduinoChatGPT class, passing in your OpenAI API key:

    ArduinoChatGPT chat("YOUR_OPENAI_API_KEY");
    
  3. Send a message to the GPT model using the sendMessage() method:

    String response = chat.sendMessage("Hello, how are you?");
    
    
  4. Use the response variable to retrieve the response from the GPT model.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages