r/SpringBoot • u/Infamous-Bee-1145 • Mar 21 '23
ChatGPT for Spring Boot projects
I am building an IntelliJ plugin that lets you find bugs, refactor, optimize, or explain your code with ChatGPT.
Set up your Open API key - ensure you have credits in your OpenAPI account.
Enter it in the UnloggedGPT console and click on one of the buttons.
Warning: The unit test boilerplate generation with Unlogged works fully offline (since I have built it from scratch with no AI) but if you use one of the options from Find Bugs, Refactor, Optimize or Explain - your code snippet will be sent to ChatGPT API.
Install Unlogged from the JetBrains Marketplace and try it out.
Demo link in the comments.
1
u/Accomplished_Sky_127 Mar 22 '23
Huge privacy issues with something like this that would not work for any sort of heavily regulated business.
2
u/Infamous-Bee-1145 Mar 22 '23
Totally. A lot of folks have given similar feedback. I am working on offering a self-hosted Llama/Alpac. It should be available very soon. No data/code should ever leave the developer/company premises in that case.
1
0
u/Pedantic_Phoenix Mar 21 '23
What is the accuracy?
3
u/Infamous-Bee-1145 Mar 21 '23
there is no way to statistically offer an accuracy number since the API responses are generative. My observation is that almost all responses need to be tested before injecting them right into the code.
2
u/Pedantic_Phoenix Mar 21 '23
Doesn't that defeat the purposes of finding bugs and optimizing in the sense that you would need to test both things manually anyway therefore rendering the plugin redundant?
6
u/Infamous-Bee-1145 Mar 21 '23
In its current form, this saves time in searching for the right answer across the internet. It's not very different from developers copying some top-rated answer from StackOverflow. Even in that case, developers are expected to verify before blindly copy-pasting.
I am planning to include feedback as to whether the API response helped or not, and hoping that the model gets better over time.
Alternatively, offering a self-hosted Llama or Alpacs with greater frequency of fine-tuning + feedback could solve a lot of it.
3
5
Mar 21 '23
[removed] — view removed comment
6
1
u/Infamous-Bee-1145 Mar 21 '23
Yep, I agree with it. In fact, when fine-tuned models will be available with the latest data is not clear either. I am thinking of fine-tuning Llama and offering it as a self-hosted option to developers. But only if a lot of people find this useful.
4
u/Infamous-Bee-1145 Mar 21 '23
Demo Link: https://www.youtube.com/watch?v=beLZIXFuKEE
Get your API key from: https://platform.openai.com/account/api-keys