Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bayeggex/arduino-ai-chat-library
π€π¬ Arduino library for integrating AI chat like OpenAI's ChatGPT, Hugging Face Transformers, and more.
https://github.com/bayeggex/arduino-ai-chat-library
ai arduino arduino-ai arduino-library chatbot esp esp32-arduino esp8266-arduino hugging-face library openai
Last synced: about 1 month ago
JSON representation
π€π¬ Arduino library for integrating AI chat like OpenAI's ChatGPT, Hugging Face Transformers, and more.
- Host: GitHub
- URL: https://github.com/bayeggex/arduino-ai-chat-library
- Owner: bayeggex
- License: mit
- Created: 2024-06-29T15:00:19.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T11:31:57.000Z (4 months ago)
- Last Synced: 2024-08-16T12:38:23.014Z (4 months ago)
- Topics: ai, arduino, arduino-ai, arduino-library, chatbot, esp, esp32-arduino, esp8266-arduino, hugging-face, library, openai
- Language: C++
- Homepage:
- Size: 28.3 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI Chat Library for Arduino
π€π¬![GitHub](https://img.shields.io/github/license/bayeggex/Arduino-AI-Chat-Library)
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/bayeggex/Arduino-AI-Chat-Library?include_prereleases)
![GitHub last commit](https://img.shields.io/github/last-commit/bayeggex/Arduino-AI-Chat-Library)
![GitHub issues](https://img.shields.io/github/issues-raw/bayeggex/Arduino-AI-Chat-Library)
![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/bayeggex/Arduino-AI-Chat-Library)![tenor](https://github.com/bayeggex/Arduino-AI-Chat-Library/assets/79448667/ae4451d4-2c67-43bd-b8c7-e378960c33d1)
AIChatbot is a versatile Arduino library for integrating various AI chatbot APIs. It supports connecting to OpenAI's ChatGPT, Hugging Face Api's.
## β¨ Features
- **Versatile AI Integration**: Integrate various AI chatbot APIs seamlessly into your Arduino projects.
- **Supports Multiple APIs**: Connect to OpenAI's ChatGPT, Hugging Face APIs, and more with ease.
- **Easy Setup**: Simple API key configuration and setup for quick deployment.
- **Real-time Interaction**: Handle real-time messages and responses over WiFi.
- **Flexible AI Selection**: Choose between different AI versions such as "gpt-3.5-turbo","gpt-4" (more will be integrated)
- **Community-driven**: Contributions and improvements from the community are welcomed and encouraged.## π§Installation
1. **Download the Library**: Download or clone this repository.
2. **Import into Arduino IDE**:
- Open Arduino IDE.
- Go to **Sketch > Include Library > Add .ZIP Library...** and select the downloaded ZIP file.3. **Dependencies**:
- This library requires the `WiFi` and `HTTPClient` libraries for making HTTP requests. Make sure to install these libraries through the Library Manager in Arduino IDE if not already installed.## πUsage
### Setting Up AI Keys
Before using the AIChatbot library, you need to set your API keys for the respective AI services. You can do this in your sketch code:
```cpp
#includeAIChatbot chatbot;
void setup() {
Serial.begin(115200);
// Set API keys
chatbot.setKey("YOUR_CHATGPT_API_KEY", "chatgpt");//Begin WiFi connection
chatbot.connectWiFi("YOUR_SSID", "YOUR_PASSWORD");
// Select AI and optionally specify version
chatbot.selectAI("chatgpt", "gpt-3.5-turbo");
}void loop() {
// Update and handle incoming messages
chatbot.update();
}
```
## π€ Contributing
Contributions are welcome! To contribute to AIChatbot, fork this repository, make improvements, and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.Fork the repository.
Create a new branch: git checkout -b feature/amazing-feature
Commit your changes: git commit -m 'Add some amazing feature'
Push to the branch: git push origin feature/amazing-feature
Open a pull request.## π Documentation
For detailed documentation, please refer to [Docs.md](./Docs.md).
## π License
This project is licensed under the MIT License. See the LICENSE file for more details.
If you find this project helpful or interesting, don't forget to give it a star! β
Express yourself freely and elevate your chat experience with Arduino-AI-Chat-Library! π