ChatGPT-Line-Bot  by TheExplainthis

Line bot for ChatGPT integration

created 2 years ago
1,699 stars

Top 25.6% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a LINE messaging bot that integrates with OpenAI's ChatGPT and DALL-E 2 models, enabling users to interact with advanced AI through the popular messaging platform. It's designed for LINE users who want to leverage AI for text generation, image creation, and potentially other AI-driven tasks directly within their chat conversations.

How It Works

The bot acts as a bridge between the LINE Messaging API and OpenAI's API. Users send messages to the LINE bot, which then forwards these messages to the selected OpenAI model (e.g., gpt-3.5-turbo). The AI's response is then sent back to the user via LINE. For image generation, specific commands trigger calls to the DALL-E 2 API. The project also incorporates Whisper for voice-to-text transcription, allowing voice input to be processed by ChatGPT.

Quick Start & Requirements

  • Installation: Deploy via Replit by forking the GitHub repository.
  • Prerequisites: OpenAI API Key, LINE Channel Access Token, LINE Channel Secret.
  • Deployment: Replit hosting with a cron job (cron-job.org) to keep the bot active.
  • Documentation: YouTube Video (link not provided in README), Commands Reference

Highlighted Details

  • Integrates ChatGPT (gpt-3.5-turbo) and DALL-E 2 for text and image generation.
  • Supports voice input via Whisper for speech-to-text.
  • Allows users to register their own OpenAI API tokens and set system messages.
  • Can process and summarize content from various Taiwanese news sources (e.g., UDN, Yahoo News, ETtoday).

Maintenance & Community

  • The project is open-source and welcomes support.
  • Related projects include gpt-ai-assistant and ChatGPT-Discord-Bot.

Licensing & Compatibility

  • License: MIT
  • Compatibility: Permissive for commercial use and integration with closed-source applications.

Limitations & Caveats

  • Replit free tier hosting may lead to the bot sleeping after an hour of inactivity, requiring a cron job to maintain uptime.
  • The project's update log indicates recent changes, suggesting active development but also potential for breaking changes.
Health Check
Last commit

1 year ago

Responsiveness

1 day

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

Explore Similar Projects

Feedback? Help us improve.