Skip to content
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

ChatDev always freezes #167

Closed
dnhkng opened this issue Oct 11, 2023 · 9 comments
Closed

ChatDev always freezes #167

dnhkng opened this issue Oct 11, 2023 · 9 comments

Comments

@dnhkng
Copy link

dnhkng commented Oct 11, 2023

Fresh installs on Linux (Ubuntu 22) or Mac seem to freeze.

When I follow the instructions and add my API key, and use this command:

python3 run.py --task "Create a simple pong game in python" --name "MyCalculator"

I get a lot of text in the terminal, ending like this:

Mind Map: can represent ideas, with related concepts arranged around a core concept.

As the Chief Product Officer, to satisfy the new user's demand and the product should be realizable, you should keep discussing with me to decide which product modality do we want the product to be?

Note that we must ONLY discuss the product modality and do not discuss anything else! Once we all have expressed our opinion(s) and agree with the results of the discussion unanimously, any of us must actively terminate the discussion by replying with only one line, which starts with a single word <INFO>, followed by our final product modality without any other words, e.g., "<INFO> PowerPoint".

At this point, nothing further happens.
Once I got a response from OpenAI, and I saw that about 500 tokens were processed, but then the code froze again.

Is there a logging system to help debug this?

@JLPiper
Copy link

JLPiper commented Oct 11, 2023

Same issue here. My install previously worked fine, now freezes at this same section.

@dneprovets
Copy link

The same behavior on mac

@dneprovets
Copy link

[2023-12-10 14:56:57 INFO] error_code=insufficient_quota error_message='You exceeded your current quota, please check your plan and billing details.' error_param=None error_type=insufficient_quota message='OpenAI API error received' stream_error=False

Find only in logs

@Alphamasterliu
Copy link
Contributor

Alphamasterliu commented Oct 13, 2023

Hello, 😊when the conversation stops after the first turn, it could be a direct reflection of your API key not being utilized. Please check if your account has a sufficient balance (a few cents should be enough for GPT-3.5 for one request, but GPT-4 might require more), I suggest ensuring that your account has around $3 in credit before you begin. And ensure that you have configured the key's environment successfully. Your understanding is greatly appreciated. Thank you for your support and for trying out ChatDev. We remain committed to continuously enhancing the overall functionality and stability.

@markolia
Copy link

it is not true i have plenty of usage left and still get that message. its a shame always after i finally give a task it freezes so i recenty trying to find my way around w different app. would be nice if devs explain this coz its just waste of time much efficient is just to play w another ai and get anything done...

@brianlowery
Copy link

Just thought I would post this here in case it helps someone else.
I was trying to track this down myself, and went into the warehouse folder, and there is a text file named project_something_DATETIME.txt.
In that file, it shows me that my API key was incorrect.
[2023-14-10 20:12:30 INFO] error_code=invalid_api_key error_message='Incorrect API key provided:
I went in and just created a new API key, updated it and was able to run my project successfully.

@Alphamasterliu @markolia @dnhkng

Maybe check that folder and provide the error code and message?

@dnhkng
Copy link
Author

dnhkng commented Oct 17, 2023

@brianlowery No, I see the first request was successful, and then nothing. Deliberately setting the API key incorrectly does generate the error message you see though.

I suspect it's a rate-limit error. I am trying with Azure access, but I'm having trouble with access, and am seeking help here #191

@brianlowery
Copy link

@dnhkng so you see the successful request, and then you have nothing else in that file?

@dnhkng
Copy link
Author

dnhkng commented Oct 18, 2023

@brianlowery I think it's due to rate limiting on my OpenAI account (I'm not an admin there, so I can't make changes). I've made PR #192 that gets Azure ChatGPT access working, so now I just use that 🤷🏻

@dnhkng dnhkng closed this as completed Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants