Giter Site home page Giter Site logo

Comments (8)

linweiyuan avatar linweiyuan commented on August 19, 2024

发下配置文件

from go-chatgpt-api.

justincnn avatar justincnn commented on August 19, 2024

发下配置文件

运行chatgpt web的vps配置:chatgpt web:

ersion: '3'

services:
  app:
    image: kerwin1202/chatgpt-web # 总是使用latest,更新时重新pull该tag镜像即可
    container_name: chatgptwebplus
    ports:
      - 3002:3002
    restart: unless-stopped
    depends_on:
      - database
    environment:
      TZ: Asia/Shanghai
      # 二选一
      # OPENAI_API_KEY: sk-xxx
      # 二选一
      OPENAI_ACCESS_TOKEN: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik1UaEVOVUpHTkVNMVFURTRNMEZCTWpkQ05UZzVNRFUxUlRVd1F************ml6YXRpb24ucmVhZCBvcmdhbml6YXRpb24ud3JpdGUifQ.pCdMQPtzk67Ys0GlI2_Aa5eB8nM7icTx7eO79IgJ8ErTWNHI0L97Zv8UuIVMjjlqH0-bCbZEIt5X21kFwk1MMghe-Jr1AOhr8h1D9DUuEfwY1i8v4pDQanFErZ-v-zSl8gZ-2MCpwAB9CCYEK7FltQgW7HMoTpbWF02zq-6ea6OgQBo4xlhG2_-3HNRsTiXTvMen5rU6evrF1WU5IUkZClQG1UW7Uox6co3WxZueYE_vX6HCfN3avMM93ucWcvI_qFJrAJuYC2e14mtJ5-FZlT56hRzHM7JJQyQCGymxrjuvUOMnG_RYPAL5mXDyYqXYMAzGH9QhRbAZzz2B8WzVjQ
      # API接口地址,可选,设置 OPENAI_API_KEY 时可用
      #OPENAI_API_BASE_URL: 
      # ChatGPTAPI ChatGPTUnofficialProxyAPI
      OPENAI_API_MODEL: gpt-3.5-turbo
      # 反向代理,可选
      API_REVERSE_PROXY: http://ip:8080/chatgpt/conversation
      # 每小时最大请求次数,可选,默认无限
      MAX_REQUEST_PER_HOUR: 0
      # 超时,单位毫秒,可选
      TIMEOUT_MS: 600000
      # Socks代理,可选,和 SOCKS_PROXY_PORT 一起时生效
      # SOCKS_PROXY_HOST: xxx
      # Socks代理端口,可选,和 SOCKS_PROXY_HOST 一起时生效
      # SOCKS_PROXY_PORT: xxx
      # HTTPS 代理,可选,支持 http,https,socks5
      # HTTPS_PROXY: http://xxx:7890
      # 访问jwt加密参数,可选 不为空则允许登录 同时需要设置 MONGODB_URL

做 反代的配置:(此机器通过warp绕过chatgpt对于ip的限制)

go-chatgpi-api

services:
  go-chatgpt-api:
    container_name: go-chatgpt-api
    image: linweiyuan/go-chatgpt-api
    ports:
      - 8080:8080
    environment:
      - GIN_MODE=release
      - GO_CHATGPT_API_PROXY=
    restart: unless-stopped

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on August 19, 2024

ip:8080 这个 ip 是写死了 "ip" 还是只是发出来码掉

from go-chatgpt-api.

justincnn avatar justincnn commented on August 19, 2024

ip:8080 这个 ip 是写死了 "ip" 还是只是发出来码掉

码掉了,我用了https的反代,或者真实ip都不行

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on August 19, 2024

看下这个前端项目的日志,还有看下失败时 api 有无提示进去

我没用过这个前端

from go-chatgpt-api.

justincnn avatar justincnn commented on August 19, 2024

看下这个前端项目的日志,还有看下失败时 api 有无提示进去

我没用过这个前端

请问大佬,你是用哪个前端?

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on August 19, 2024

简单的用我自己的命令行程序,复杂的用官方的网页版

from go-chatgpt-api.

justincnn avatar justincnn commented on August 19, 2024

找到问题了,是我的错,哈哈

from go-chatgpt-api.

Related Issues (20)

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.