Skip to content

jackmamaa/big-chat

Repository files navigation

人工大聪明

demo_gif

环境 & 支持

PHP > 7.4 和 Sqlite3 => PHP5.3.0及以上版本默认启用

https://github.com/orhanerday/OpenAI

快速开始

Docker

docker run -p 8000:8000 -e OPENAI_API_KEY=sk-xxxxxxx holdroot/big-chat:latest

git clone https://github.com/jackmamaa/big-chat.git
docker build -t big-chat .
docker run -p 8000:8000 -e OPENAI_API_KEY=sk-xxxxxxx big-chat

开始

  • 克隆到本地

git clone https://github.com/jackmamaa/big-chat.git
  • 进入目录

cd big-chat
  • 安装支持库 OrhanErday/OpenAI

composer require orhanerday/open-ai
  • 在’event-stream.php‘设置你的OPENAI API

$open_ai_key = ""; 
  • 打开web服务

php -S localhost:8000 -t .