-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement]: Implement timeout feature for GPT4 API #402
Comments
A simple way of achieving this would be to add gpt-pilot/pilot/utils/llm_connection.py Line 343 in a6bd846
This is not perfect but would probably be better than the current solution (wait forever). |
@senko tried it with |
Could you post a screenshot or copy/paste (if there's anything to copy paste)? If you're using CLI, you can also hit Ctrl-C to stop it, which wil also give you a full exception stack trace (~50 lines of messages), if you can copy/paste that it would also help out in pinpointing the location of the wait. |
@senko Here it is:
|
@senko and this is the output I get when I change the model to gpt-3.5-turbo in .env
|
I noticed that it often gets stuck on "Implementing code changes for". For example:
|
closing this issue since it got solved with 2 timeouts |
Sometimes when running it, the API hangs and gets stuck on 'waiting'.
I would recommend a feature where if there are no new tokens generated from the API (ie no new response) in X amount of seconds, it re-completes the failed development step
The text was updated successfully, but these errors were encountered: