OpenBMB / ChatDev

Create Customized Software using Natural Language Idea (through LLM-powered Multi-Agent Collaboration)
https://arxiv.org/abs/2307.07924
Apache License 2.0
25.17k stars 3.15k forks source link

flask app.py did not start for online log #247

Closed xieeryihe closed 8 months ago

xieeryihe commented 10 months ago

When I try to run command:python3 run.py --task "[Design a simple snake game with 10 * 10 grids.]" --name "[SnakeGame]" At the end of the [SnakeGame]_DefaultOrganization_20231102155105.log, I got

[2023-02-11 15:51:05 INFO] flask app.py did not start for online log
[2023-02-11 15:53:15 WARNING] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fcbff1329d0>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /v1/chat/completions

and always retry, how can I fix it?

wyifei26 commented 10 months ago

I think this could be an issue with your OpenAI key or network environment. Try checking those?

xieeryihe commented 10 months ago

My OpenAi key is OK and I'm using the school Intranet. After testing, I was able to call Openai's API over the school Intranet.

cocobeach commented 9 months ago

It's not your API key, it's the dev breaking the script after the last commit. They changed the folder online_log with chat_visualizer, now to run the visualizer you need to run the latter, but change the folder to the online_log to run the coding script. I have no further comment...

thinkwee commented 8 months ago

Please pull the latest code and try again