A Visual Studio Code extension that provides an AI-powered coding assistant to help with LeetCode problems and general programming questions. The extension integrates with multiple AI models including Deepseek Coder, OpenAI GPT-4, and custom models through Groq or Ollama.
Features
Multiple AI Model Support:
Deepseek Coder (6.7b)
Deepseek R1
OpenAI GPT-4
Custom LLM via Groq
Custom Ollama models
Dual Mode Operation:
LeetCode Help: Specialized assistance for LeetCode problems
General Coding: Help with any programming questions
Smart Context Awareness:
Automatically captures current file content
Provides context-aware suggestions
Maintains conversation history
User Interface:
Integrated chat panel
Code formatting support
Easy model switching
New chat creation
Conversation history management
Installation
Install the Extension:
Install from VS Code Marketplace [link]
Or download the VSIX file and install manually
Install Required Dependencies:
pip install -r requirements.txt
Configure AI Models (Optional):
For OpenAI GPT-4: Set your API key using the "Update OpenAI API Key" command
For Groq: Set your API key and model using the respective commands
For Ollama: Install Ollama locally and set up your preferred model
Usage
Starting the Extension
Open VS Code
Click the LeetCode Chatbot icon in the sidebar
The chat panel will open, ready to assist
Available Commands
Access these commands through the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
LeetCode Chatbot: Analyze Code
LeetCode Chatbot: Update OpenAI API Key
LeetCode Chatbot: Update Groq API Key
LeetCode Chatbot: Set Custom Model
LeetCode Chatbot: Set Ollama Model
Features Guide
Model Selection:
Choose your preferred AI model from the dropdown
Models include Deepseek Coder, OpenAI GPT-4, and custom options
Mode Toggle:
Switch between "LeetCode Help" and "General Coding" modes