Giter Site home page Giter Site logo

chat2api's Introduction

AURORA

README_EN

(带UI)免费的GPT3.5,支持使用3.5的access 调用

交流群

https://t.me/aurora_develop

Web端

访问http://你的服务器ip:8080/web

web使用

注:仅ip属地支持免登录使用ChatGpt可以使用(也可以自定义Baseurl来绕过限制)

Deploy

Glitch部署

Deploy to Glitch

Vercel部署

由于vercel的go不支持流式,如果在vercel部署请在STREAM_MODE中填False,不支持任何默认流式的客户端,支持沉浸式翻译。

Deploy with Vercel

Render部署

Deploy

Koyeb部署

地区选美国

Deploy to Koyeb

Railway部署

Deploy on Railway

Zeabur部署

进入修改镜像名称aurora+任何字母数字

Deploy on Zeabur

编译部署

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

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://你的服务器ip: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
   }'

高级设置

默认情况不需要设置,除非你有需求

环境变量


BASE_URL="https://chat.openai.com/backend-api" 代理网关
Authorization=your_authorization  用户认证 key。
TLS_CERT=path_to_your_tls_cert 存储TLS(传输层安全协议)证书的路径。
TLS_KEY=path_to_your_tls_key 存储TLS(传输层安全协议)证书的路径。
PROXY_URL=your_proxy_url 添加代理池来。

鸣谢

感谢各位大佬的pr支持,感谢。

参考项目

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

License

MIT License

chat2api's People

Contributors

aurorax-neo avatar bccahy avatar binjie09 avatar gngpp avatar hot-chenxiaobai avatar icpd avatar k0baya avatar lanqian528 avatar larchliu avatar learnli avatar lysliu avatar magicalmadoka avatar neatlife avatar redshamea avatar ri0day avatar xiaozhou26 avatar yjmp14 avatar

Stargazers

 avatar

Forkers

ishaonian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.