ASSERT-KTH / cigar

Efficient APR with LLMs http://arxiv.org/pdf/2402.06598
http://arxiv.org/pdf/2402.06598
13 stars 2 forks source link

openai.error.APIConnectionError #3

Open lemon1-ui opened 1 month ago

lemon1-ui commented 1 month ago

Hi,Dr.Dávid,when I ran the ./cigar.sh Chart 1, the errors as follow: how can I resolve it? image

khaes-kth commented 1 month ago

Hi @lemon1-ui

Have you set your API_KEY in the user_params.py file after runing bash install.sh?

lemon1-ui commented 1 month ago

Yes, I have set the API_KEY in the user_crams. py file. And Chart 1 has been successfully fixed, but the above error occurred while fixing the defect in Chart 3. However, when I tried to repair the Closure 1,the following error has occurred. image

khaes-kth commented 1 month ago

The problem with Chart 3 should be related to connecting to OpenAI API. Please retry and let me know if you still face the same issue.

The problem with Closure should be related to extracting bug information for Closure bugs. I guess some setting is not set or library is not installed, and that's the problem. We will need to update the README to ensure all the requirements are installed for extracting bug info.

As a temporary solution, you can unzip the cache/cache.tar.gz.a* files and add their content to the existing cache content. That should fix this issue with Closure.

lemon1-ui commented 1 month ago

I tried it again,but I still faced the same error as follows.About the Closure,I will try it with your method. image

lemon1-ui commented 1 month ago

@khaes-kth Hi,sorry to bother you again.I would like to ask how to decompress cache/cache. tar. gz. a * files?

khaes-kth commented 1 month ago

No worries @lemon1-ui

You should be able to decompress the files following the instructions here. Particularly, I guess you can cd to cache and run cat cache.tar.gz.* | tar xzvf -.

lemon1-ui commented 1 month ago

@khaes-kth The problem with Closure has been solved.But I still failed to connect to OpenAI API.How can I solved it? image

khaes-kth commented 1 month ago

@lemon1-ui Can you double check what model you are using in your prog_params.py file? It seems the gpt-3.5-turbo-0301 is deprecated, even though the timeout issue you are facing may not be related to the model.

lemon1-ui commented 1 month ago

@khaes-kth I just tried to change gpt-3.5-turbo-0301 to gpt-3.5-turbo, but the same error still occurred.

lemon1-ui commented 1 month ago

@khaes-kth Hi,I'm so sorry to bother you again.I tried to change gpt-3.5-turbo-0301 to other versions, Chart 1 could be repairred successfully, when I tried to fix other bugs, the error as followed.How can I solved it? Thanks so much! image

khaes-kth commented 1 month ago

Hi @lemon1-ui

We can set up a remote meeting if you want to check this out. It is hard to guess what is going on just by looking at these logs. If you want to have a meeting, please send me an email. You can find my email in my GitHub profile page.