Skip to content

Conversation

@prav10140
Copy link

@prav10140 prav10140 commented Jan 17, 2026

Feature: CodeMate AI Chatbot for Online Compiler

Summary:
This PR adds CodeMate, an AI-powered chatbot integrated directly into the online compiler. It helps users understand code logic, debug errors, and optimize solutions with a strict 3-approach structure (Brute Force → Better Approach → Optimal Approach).

Key Features:

Multi-language support: JavaScript, Python, C++, Java (user-selectable).

Strict 3-approach responses: Always provides Brute Force, Better, and Optimal solutions with time & space complexity.

Full-screen responsive UI: Floating chat button 💬, expandable to fullscreen 🗖.

Markdown & syntax highlighting: Uses react-markdown and react-syntax-highlighter for clean code rendering.

Real-time AI assistance: Powered by Groq API for fast and accurate code explanations.

Environment configuration: API key stored in .env as VITE_GROQ_API_KEY.

How to Use:

Add your Groq API key to .env file:

VITE_GROQ_API_KEY=your_api_key_here

Start the development server:

npm install
npm run dev

Click the 💬 chat button to open CodeMate, select your language, and ask coding questions.

Benefits:

Helps beginners understand programming concepts easily.

Assists in choosing the most efficient solution approach.

Seamlessly integrates into the existing compiler interface.

Screenshot 2026-01-17 140432 Screenshot 2026-01-17 140446

@nexusai97-gif
Copy link

I own a chatbot service with multiple models and high performance at a cheap price. Message me on Telegram @Nexusai97.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants