Code Monkey home page Code Monkey logo

chatgptcnserver's Introduction

ChatGPTCnServer

基于golang的ChatGPT反向代理服务器,项目起的名字有点夸张,见笑

部署方式

  1. 从本站下载好 二进制(或者自己编译)文件,附带config.yaml配置文件即可.
  2. nginx配置:
    location /api/ {
    add_header Access-Control-Allow-Origin * always;
    add_header Access-Control-Allow-Credentials false always;
    add_header Access-Control-Allow-Methods * always;
    add_header Access-Control-Allow-Headers * always;
    if ($request_method = 'OPTIONS') {
    return 204;
    }
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    rewrite ^/api/(.*)$ /$1 break;
    proxy_pass http://127.0.0.1:8899/;
    }
  3. config.yml说明详见本文件内部说明
  4. 前端html代码详见 https://github.com/xaseven/chatgptcnhtml
    主要使用接口:/api/base/quest (配合nginx做api目录重写)

Build from source

  1. Clone the repo。go get github.com/xaseven/chatgptcnserver
  2. Install dependencies with go mod tidy
  3. GOOS=linux GO111MODULE=on GOARCH=amd64 go build

视频教程

https://www.youtube.com/@qilaoxi/videos

https://www.bilibili.com/video/BV1MR4y1r7xQ/

QQ群:816577341

广告

赚钱项目:游鱼赚钱项目平台

服务器购买①:【腾讯云】云服务器等爆品抢先购,低至4.2元/月

服务器购买②:【腾讯云】热卖云产品年终特惠,2核2G轻量应用服务器6.58元/月起

chatgptcnserver's People

Contributors

xaseven avatar

Watchers

 avatar

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.