Skip to content

1835625/aurora

 
 

Repository files navigation

Deploy

编译部署

git clone https://github.com/aurora-develop/aurora
cd aurora
go build -o aurora
chmod +x ./aurora
./aurora

.env.template中是默认环境变量配置需要的自己改.env后运行

Docker部署

Docker部署

您需要安装Docker和Docker Compose。

docker run -d --name aurora -p 8080:8080 ghcr.io/aurora-develop/aurora:latest

Docker Compose部署

创建一个新的目录,例如aurora-app,并进入该目录:

mkdir aurora
cd aurora

在此目录中下载库中的docker-compose.yml文件:

docker-compose up -d

Usage

curl --location 'http://127.0.0.1:8080/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
     "model": "gpt-3.5-turbo",
     "messages": [{"role": "user", "content": "Say this is a test!"}],
     "stream": true
   }'

参考

https://github.com/xqdoo00o/ChatGPT-to-API

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.7%
  • Dockerfile 0.3%