The AI chat panel now supports two high-quality models through OpenRouter:
- DeepSeek Chat V3 - Advanced reasoning and coding capabilities
- Gemini 2.0 Flash - Fast and efficient responses
- Visit OpenRouter.ai
- Sign up or log in to your account
- Navigate to the API Keys section
- Create a new API key
-
Copy
.env.exampleto.env.local:cp .env.example .env.local
-
Edit
.env.localand add your OpenRouter API key:OPENROUTER_API_KEY=your_actual_openrouter_api_key_here NEXT_PUBLIC_SITE_URL=http://localhost:3000
- Model Selection: Choose between DeepSeek Chat V3 and Gemini 2.0 Flash
- File Explanation: Right-click on files in the explorer to get AI explanations
- Context-Aware Chat: Select files as context for your questions
- Real-time Processing: See loading indicators and status updates
- Start the development server:
npm run dev - Open the chat panel from the right side
- Select your preferred model from the dropdown
- Either:
- Type a general question
- Select a file from the project explorer and ask about it
- Right-click on files to get automatic explanations
Both models are available on OpenRouter's free tier with some limitations:
- DeepSeek Chat V3: Free tier available
- Gemini 2.0 Flash: Free tier available
Check OpenRouter's pricing page for current rates and limits.
- Ensure your API key is valid and has credits
- Check browser console for detailed error messages
- Verify environment variables are properly set