try {
const response = await fetch('https://api.groq.com/openai/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${apiKey}`,
},
body: JSON.stringify({
model,
messages: [
{
role: 'system',
content: `You are an AI assistant for LeetCode. Provide a ${level} hint for the following problem. Do not solve the entire problem. Just provide a hint.`,
},
{
role: 'user',
content: context,
},
],
}),
🔴 Currently a level2 contribution but can be upgraded to level3 on proper resolution.
📌 Description
The current prompt for hints is:
This is very basic and has lot of flaws:
✅ Tasks
1. Overall improvement in hint generation:
2. Improvement in the consistency of hints:
3. LangChain:
4. Testing:
📂 Relevant Files
🔴 Currently a level2 contribution but can be upgraded to level3 on proper resolution.