ai-beehive  by hncboy

Java Spring Boot 3 app for AI chat/image generation

Created 2 years ago
2,214 stars

Top 20.5% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a modular, extensible AI chat platform built with Java, Spring Boot 3, and JDK 17. It aims to consolidate various AI models and services, including ChatGPT, OpenAI Image, Midjourney, and NewBing, into a unified interface. The platform is designed for developers and power users seeking a customizable backend for AI-powered applications.

How It Works

The core architecture revolves around a "drawing" (图纸) system, where each drawing represents a specific AI model or service with its own configuration and behavior. These drawings are modular and can be extended by adding new ones, inspired by the hexagonal structure of a beehive. The system uses Spring Boot 3 for its backend, MySQL for data storage, Redis for caching and token management, and SaToken for authentication and authorization. Configurations for each AI model are managed via database tables, allowing for dynamic adjustments to parameters and permissions.

Quick Start & Requirements

  • Install: Requires MySQL 8.x and Redis. Run via IDEA.
  • Prerequisites: JDK 17, MySQL, Redis.
  • Setup: Database schema provided in beehive-bootstrap/src/main/resources/db/schema-mysql.sql. Default credentials: hellobee@aibeehive.icu / 123456.
  • Docs: https://github.com/hncboy/ai-beehive

Highlighted Details

  • Supports multiple AI models: ChatGPT (3.5/4), OpenAI Image, Midjourney, NewBing, Wenxin Yiyan.
  • Role-based access control for AI models ("drawings").
  • Email login/registration with configurable suffix restrictions and approval workflows.
  • Dynamic configuration of AI model parameters via database.
  • Midjourney integration includes text-to-image, upscale, variation, and image-to-text.

Maintenance & Community

  • Active development with planned additions of more AI models (e.g., Tongyi Qianwen, ChatGLM) and features like an admin panel and image gallery.
  • Contact via WeChat group (details in README).

Licensing & Compatibility

  • No explicit license mentioned in the README.
  • Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The project is under active development, with some features marked as "to be updated" or "under repair." The NewBing integration is noted as problematic in online environments. Manual database modifications are currently required for managing drawings and configurations.

Health Check
Last Commit

2 years ago

Responsiveness

Inactive

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

Explore Similar Projects

Feedback? Help us improve.