chat_gpt_oicq  by easydu2002

QQ chatbot leveraging OpenAI's API

created 2 years ago
289 stars

Top 91.9% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a ChatGPT-powered QQ chatbot, targeting QQ users who want to integrate AI chat capabilities into their social interactions. It offers a customizable, easy-to-deploy solution for private chats, group chats, and channels, leveraging OpenAI's official API for cost-effective and advanced conversational AI.

How It Works

The bot operates by connecting to QQ via the oicq library (though this dependency is noted as problematic, leading to a pivot to Koishi plugins). It then interfaces with OpenAI's official API, specifically optimized for chat models like gpt-3.5-turbo, offering significant cost savings over older models. Users can customize the bot's personality and behavior through a configuration file (config.json) and an in-chat command system.

Quick Start & Requirements

  • Installation: Download the executable from releases.
  • Prerequisites: OpenAI API key.
  • Configuration: Requires editing config.json for API keys, proxy settings (if needed), and custom personality.
  • Documentation: Detailed setup and configuration guides are available on the Wiki.

Highlighted Details

  • Cost-effective: OpenAI chat model usage is 1/10th the cost of text-davinci-003.
  • Customizable Personality: Supports defining AI identity via config.json for varied conversational styles.
  • Multi-platform support and easy deployment via executable.
  • Supports private chats, group chats, and channels.

Maintenance & Community

  • The project has been deprecated in its original form due to issues with the oicq dependency.
  • The new recommended approach is to use it as a Koishi plugin, searching for openai-character in the plugin market.
  • A QQ group (212908713) is available for community discussion.

Licensing & Compatibility

  • The README does not explicitly state a license.
  • Given the use of OpenAI's API, users must adhere to OpenAI's terms of service.

Limitations & Caveats

The original oicq based implementation is deprecated due to instability. The recommended Koishi plugin approach requires setting up the Koishi client and installing the plugin separately.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
2 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.