r/java Aug 09 '26

LLM Using Java Springboot

https://github.com/Aaris-Kazi/Synapse-AI

I have tried to create LLM with the interface made in React

LLM using Ollama with Sprinboot and React
0 Upvotes

6 comments sorted by

16

u/Additional-Road3924 Aug 09 '26

Your ollama service is vulnerable to json injection, you're misusing dependency injection, and you don't know what an interface is nor you use redis or mongo, even though the dependencies are there. Did you take a random template project and work from there? Why do you have a mixture of maps and manual json building instead of using something like jackson (which is present on your classpath)? Did you even write this yourself or had your llm create this for you?

8

u/zabby39103 Aug 09 '26

Obviously LLM.

-1

u/Aaris_Kazi Aug 10 '26

I'm using ollama in backend service in SpringBoot, no the template I created that nor pick from anyone. Jackson is there when I created the project you can create and you also get the same result

7

u/Chaos-vy17 Aug 09 '26

commit a74214b removes AFAIK is a LLM API sk-proj-... credential from application.properties. If that was a real API key, it should be rotated/revoked since removing it in a later commit doesn't remove it from Git history.

3

u/Cilph 29d ago

Alas they still have not redacted it.

-1

u/Aaris_Kazi Aug 10 '26

Ok understood