#145 · Primary category: AI Chatbots

deepseek

chatgpt html php

演示站可以免费使用deepseek-r1满血模型进行AI对话,并支持使用stablediffusion模型画图。本项目是PHP版调用DeepSeek第三方接口进行问答和画图,采用Stream流模式通信,一边生成一边输出。前端采用EventSource,支持Markdown格式解析,支持公式显示,代码有着色处理,支持画图。页面UI简洁,支持上下文连续会话。源码只有几个文件,没用任何框架,支持所有PHP版本,全部开源,极易二开,适合PHP初学者。保姆级教程,账号等周边资源,欢迎进群交流,一切全免费。

Project last updated:07/24/25

GitHub Stars

3.1K

Forks

7

Contributors

4

License

MIT

Why we included this project

Built as a handful of PHP files with no framework and no database, this project turns any OpenAI-compatible API key into a working chat front end. It streams replies token by token over EventSource, renders Markdown with syntax-highlighted code and math formulas, keeps conversation context across turns, and can trigger an image-generation call when a prompt starts with a specific keyword. Because the code is small and unadorned, it's easy to read and modify, which makes it a good learning tool for PHP beginners and a quick base for small teams that want a minimal, hackable demo before building something larger. It also rotates multiple API keys and logs conversations, so it works as a practical personal or small-group chat tool, not just a tutorial.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category