Open NoorTahir521 opened 3 days ago
@cube-dragon @Mikekkkkk
@NoorTahir521 I have successfully reproduced your issue and found a solution. You just need to ensure that the version of the project you are importing matches the version of the locally built Chattester. The current version of Chattester should be 1.4.1, not 1.0.0.
Additionally, please make sure to run mvn clean install
on the core (note the version; I used the core from the branch with commit ID 3eeac384e1f9ebea195a54065cf5c02ef12e0909), the Maven plugin (Chattester), and the project you are testing.
I hope this helps resolve your issue!
Thank you so much for your response and help, I have figured it out, but the problem now is with OpenAI, this seems to be a problem within China. I have tried it without a proxy (default proxy)
I have also explicitly changed the URL according to this blog: https://developer.aliyun.com/article/1405060 to this https://openai.wndbac.cn/v1
I also added the proxy using my VPN (Clash) and this blog: https://blog.csdn.net/qq_41644739/article/details/129593030 but still I am unable to connect to ChatGPT (API key is registered using my foreign country Germany's number) please if you can help in this regard, it would be great.
@NoorTahir521 It seems that you may not have properly configured your proxy settings. On Windows 11, please check your proxy IP address and port number, and ensure that they are included in the plugin configuration settings.
Thank you for your response, I have configured the proxy, but it seems like the free plan is not supporting the project's RPM or RPD, can you please verify the plan requirement for the GPT-API, or the requests required for a class to work, I am generating test cases for the class ObjectExtractor in Tabula java project. I am currently on free plan of Chat GPT. Error message: In AskGPT.askChatGPT: java.io.IOException: Unexpected code Response{protocol=h2, code=429, message=, url=https://api.openai.com/v1/chat/completions}
@NoorTahir521 Based on the information from the OpenAI help center regarding error code 429, it appears that the default project is set up for multithreading. Could you please disable this setting and try again? You can do this in the Maven plugin configuration. Alternatively, you might consider using multiple API keys to match the number of threads.
@cube-dragon I have tried that here already in the pom file, in configuration:
But I am receiving the same error: In AskGPT.askChatGPT: java.io.IOException: Unexpected code Response{protocol=h2, code=429, message=, url=https://api.openai.com/v1/chat/completions}
I also tried to disable it in the plugin configuration:
I am sorry to bother you, but I am kind of stuck here, if you want to go over it in a meeting for it be quicker, here is my tencent contact I will be very grateful: Add me as a contact on [Tencent Meeting], to experience efficient and convenient meeting invitation: https://meeting.tencent.com/j/74mm8b6GY16
I was trying to reproduce the results of the paper No more Manual tests, evaluating and Improving ChatGPT for Unit Test Generation using the code https://github.com/ZJU-ACES-ISE/ChatTester. I am running it on tabula java project, but it fails to detect the plugin I am running on Windows 11, Maven 3.6 and JDK 11 I have also tried on Windows 10 Maven 3.6 and JDK 11