Giter Site home page Giter Site logo

Comments (4)

linweiyuan avatar linweiyuan commented on July 19, 2024

前端用的哪个项目

删掉敏感信息把配置文件贴出来,才知道为什么

from go-chatgpt-api.

JoePx avatar JoePx commented on July 19, 2024

前端是这个:Chanzhaoyu/chatgpt-web,其他的是go-chatgpt-api + chatgpt-proxy-server + chatgpt-proxy-server-warp

yaml是这些:

version: '3'

services:
  app:
    container_name: chatgpt-forMe
    image: chenzhaoyu94/chatgpt-web
    restart: always
    ports:
      - 3002:3002
    environment:
      API_REVERSE_PROXY: "http://go-chatgpt-api:8080/conversation"
      OPENAI_ACCESS_TOKEN: "这里填了token"
      TIMEOUT_MS: 60000
version: '3'

services:
  go-chatgpt-api:
    container_name: go-chatgpt-api
    image: linweiyuan/go-chatgpt-api
    ports:
      - 8080:8080 # 宿主机8080端口可按需改为其它端口
    environment:
      - GIN_MODE=release
      - CHATGPT_PROXY_SERVER=http://chatgpt-proxy-server:9515
      - NETWORK_PROXY_SERVER=socks5://chatgpt-proxy-server-warp:65535
    depends_on:
      - chatgpt-proxy-server
      - chatgpt-proxy-server-warp
    restart: unless-stopped
 
  chatgpt-proxy-server:
    container_name: chatgpt-proxy-server
    image: linweiyuan/chatgpt-proxy-server
    restart: unless-stopped
 
  chatgpt-proxy-server-warp:
    container_name: chatgpt-proxy-server-warp
    image: linweiyuan/chatgpt-proxy-server-warp
    restart: unless-stopped

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

这个配置看上去没有任何问题,能否看到 chatgpt-web 的日志?

如果看到类似这种字样: chatgpt-web-go-app-1 | ChatGPTError: ChatGPT error 401: {"errorMessage":"Access token has expired."}

token 过期

from go-chatgpt-api.

JoePx avatar JoePx commented on July 19, 2024

是的,是过期了。

因为提示写的API错误,误以为是API的问题

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.