i am trying to do a project where AI Reviews the Code.The concept is , when i give a code and select the corresponding lang it should detect and explains the errors and bugs in it.I am using Grok API key.Initially i tried with Gemini,Open ai ,claude keys.Where i had 0 limitations.Since it didn't work out i tried with Grok.But it's not generating the exact error in my code.It just gives some random error.
enter image description here this is the img of the proj...
enter image description here and the error generated are irrelevant to the errors in the code.Even when i give a correct code,it shows some errors
So how to solve this..or what else AI can i try