How whyiyhw/chatgpt-wechat works
Project type and purpose
• This is a Go‑based backend “ChatGPT‑WeChat” microservice suite that safely bridges Enterprise WeChat with LLMs (OpenAI, Azure, Google Gemini, Dify, Stable Diffusion, custom vector search, etc.). It provides both a RESTful API (service/chat/api) and a minimal WebSocket “demo” UI (service/websocket), orchestrated via Docker Compose.
File structure
• Top‑level “chat” directory holds Dockerfiles, build scripts (ffmpeg, MySQL/PGVector init, Redis config), compose files.
• “service/chat/api” is a Go‑Zero microservice following Clean Architecture:
• handler → logic → DAO → model
• internal config, middleware, service context
• “service/websocket” is a separate Go service exposing a WebSocket demo UI, cron tasks, bucket tasks, using the same common libs.
• “plugins” folder contains example plugin containers (search, webhook) that can be launched alongside.
README
• Confirms microservice purpose: bridging WeChat ↔ LLMs, vector store support, plugins, voice/image capabilities.