chatgpt-php-web
Free3.2k
About chatgpt-php-web
This project is an open-source PHP application that serves as a frontend for interacting with AI models compatible with the OpenAI API specification, such as GPT-3.5-Turbo, GPT-4, and DeepSeek-R1. It is designed to be lightweight, requiring no database and only a few PHP files without any framework, making it easy to modify and suitable for PHP beginners. The application uses a streaming (Server-Sent Events) communication method to generate and output responses in real-time, supporting Markdown formatting, code syntax highlighting, formula display, and image generation via a Stable Diffusion model when the user's query starts with the word "画" (draw). It also features context-aware continuous conversation, preset prompts, and the ability to interrupt the AI's response mid-generation. The project is fully open-source and appears to be offered for free, with a demo site available for testing. It is intended for personal or small-group sharing and does not plan to introduce complex features like databases.
Key Features
Pros & Cons
- Fully open-source with no licensing restrictions
- Lightweight and easy to deploy, no database or complex dependencies
- Streaming responses provide fast, real-time output
- Supports multiple AI models and image generation
- Free to use and modify, with a demo site available
- Requires self-hosting and configuration of API keys
- No built-in user authentication or access control (basic auth can be added)
- Image generation quality and availability depend on the configured Stable Diffusion API
- Limited to models compatible with the OpenAI API specification
- No official support or regular updates guaranteed