DEV Community

Sourabh Tiwari
Sourabh Tiwari

Posted on

My post post

repo

Hello devs, here's me with my first post hehe!

I build a Code Review Platform with AI:

preview of webapp

I recently started a project to create a Code Review Platform, and I’m super excited about it! I’m using two awesome APIs: Llama3 (Groq) and OpenAI's GPT-3.5-turbo.

Here’s the scoop: users can submit their code and get instant feedback thanks to Groq, which focuses on analyzing and providing suggestions. Plus, if you want to translate your code into another language, OpenAI’s GPT-3.5-turbo has got you covered. This makes the whole code review process way more efficient and educational. It’s a game-changer for anyone looking to improve their coding skills!

Challenges Encountered

  1. Model Availability: One of the significant hurdles was dealing with model availability. I initially intended to use GPT-4, but I encountered issues with insufficient quota. As a workaround, I switched to GPT-3.5-turbo, which served my needs adequately, though it didn't provide the same level of insight as the more advanced models.

  2. API Explanation Depth: During the implementation, I found that the OpenAI API provided explanations that were more in-depth and elaborate compared to the Llama model. This difference became crucial when generating detailed feedback for code submissions. The richness of responses from OpenAI allowed for a clearer understanding of code issues, which is essential for educational purposes.

Insights and Recommendations

  • API Performance: Based on my experience, OpenAI's API generally outperforms Llama in tasks that require detailed explanations and nuanced understanding. If your application heavily relies on these aspects, consider prioritizing OpenAI despite potential quota issues.

  • Feature Utilization: Both APIs offer unique features, but I found that OpenAI had a slight edge in providing a user-friendly interface and more detailed feedback mechanisms. Llama, on the other hand, may excel in areas where performance is crucial over depth.

Top comments (0)