GithubHelp home page GithubHelp logo

Comments (5)

WongSaang avatar WongSaang commented on June 19, 2024

Thank you for the feedback.

I have also encountered this issue and will fix it as soon as possible.

from chatgpt-ui.

WongSaang avatar WongSaang commented on June 19, 2024

Hello,

After investigation, it was found that the default timeout of gunicorn was too short, which caused this issue.

The timeout of gunicorn workers has been updated from the default 30 seconds to 60 seconds. I believe that this can greatly reduce the probability of this error occurring.

Please pull the latest backend image.

Your feedback is very helpful, thank you!

from chatgpt-ui.

spencerwongfeilong avatar spencerwongfeilong commented on June 19, 2024

I have confirmed 60s is not enough for a 1000 words response. With chatgpt 4 going to 8192 token, it is recommended to set this to 300s. But I think it can go higher.

For your information, I tried other similar chatgpt client on github and experienced the same problem. However adjusting the time out to 600s solve the issue for long response.

from chatgpt-ui.

WongSaang avatar WongSaang commented on June 19, 2024

I have confirmed 60s is not enough for a 1000 words response. With chatgpt 4 going to 8192 token, it is recommended to set this to 300s. But I think it can go higher.

For your information, I tried other similar chatgpt client on github and experienced the same problem. However adjusting the time out to 600s solve the issue for long response.

Hello,

The latest version of the WSGI server has set the default timeout to 180 seconds. If it is not enough, you can modify the environment variable WORKER_TIMEOUT, for example,

  backend-wsgi-server:
    image: wongsaang/chatgpt-ui-wsgi-server:latest
    environment:
      - WORKER_TIMEOUT=300

from chatgpt-ui.

WongSaang avatar WongSaang commented on June 19, 2024

@spencerwongfeilong https://github.com/WongSaang/chatgpt-ui-server/releases/tag/v2.4.0

from chatgpt-ui.

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.