A Node.js backend for DSA mentoring using AI models from Google Gemini, Groq, Mistral, and AWS.
- Install dependencies:
npm install - Create a
.envfile with your API keys:GOOGLE_API_KEY=your_google_api_key GROQ_API_KEY=your_groq_api_key MISTRAL_API_KEY=your_mistral_api_key AWS_ACCESS_KEY_ID=your_aws_access_key_id AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key AWS_REGION=us-east-1 PORT=3000 - Start the server:
npm start
Analyzes DSA stats using the selected AI model.
Request Body:
{
"stats": "your stats data here",
"modelChoice": "brain" // brain, speed, logic, or expert
}Response:
{
"message": "Analysis report..."
}brain: Gemini-3-flash (Adaptive Thinking for massive datasets)speed: Llama-3.3-70b-versatile (300+ tokens/sec)logic: Mistral-small-3.2 (Perfect instruction-following for coding)expert: Amazon Nova Pro (Complex reasoning and AWS integration)