Skip to content

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 .

About

大聪明

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages