DriveLM icon indicating copy to clipboard operation
DriveLM copied to clipboard

openai.APITimeoutError: Request timed out.

Open nowangry opened this issue 8 months ago • 4 comments

I am encountering Traceback (most recent call last): File "/Data4T/Codes/DriveLM/challenge/evaluation.py", line 240, in <module> File "/Data4T/Codes/DriveLM/challenge/evaluation.py", line 197, in evaluation print("language score: ", output["language"]) File "/Data4T/Codes/DriveLM/challenge/evaluation.py", line 88, in eval_chatGPT """ File "/home/jqwu/anaconda3/envs/drivelm/lib/python3.8/multiprocessing/pool.py", line 364, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/home/jqwu/anaconda3/envs/drivelm/lib/python3.8/multiprocessing/pool.py", line 771, in get raise self._value openai.APITimeoutError: Request timed out. when running python evaluation.py --root_path1 ./output.json --root_path2 ./test_eval.json

SOS! ubuntu 22, python 3.8, openai==1.76.0

nowangry avatar Apr 28 '25 02:04 nowangry

Seems like an openai api error. If you would like to run the provided code on your local machines, please make sure your openai key is working.

ChonghaoSima avatar May 08 '25 03:05 ChonghaoSima

@ChonghaoSima Here is the UI of my OpenAI API keys: Image It shows that it was never used. Is it working?

Seems like an openai api error. If you would like to run the provided code on your local machines, please make sure your openai key is working.

nowangry avatar May 08 '25 13:05 nowangry

Is it a network issue? I tried to switch between different networks, but it did not help.

nowangry avatar May 08 '25 13:05 nowangry

Please see if your network is within the openai available countries (https://platform.openai.com/docs/supported-countries)

ChonghaoSima avatar May 09 '25 02:05 ChonghaoSima