{role:'system',content:'You are a quiz generator. Output ONLY valid JSON. The "correct" field must always contain the EXACT TEXT of the correct answer option, never "option1" or "option2".'},
{role:'user',content:aiPrompt}
],
stream:false,
options:{temperature:0.7}
})
});
if(!ollamaResponse.ok){
consterrText=awaitollamaResponse.text();
console.error('Ollama error:',errText);
returnres.status(500).json({message:`Ollama error (${ollamaResponse.status}): Make sure Ollama is running with "${ollamaModel}" model pulled.`});
placeholder="e.g. Generate a quiz on Operating Systems covering process scheduling, memory management, and file systems. Include 10 questions that a student can answer in 15 minutes."></textarea>
<spanclass="material-symbols-rounded action-icon">quiz</span><divclass="action-info"><h3>My Quizzes</h3><p>View and manage your quizzes</p></div><spanclass="material-symbols-rounded arrow">arrow_forward</span></a>
<spanclass="material-symbols-rounded action-icon">add_circle</span><divclass="action-info"><h3>Create Quiz</h3><p>Upload or generate new assessments</p></div><spanclass="material-symbols-rounded arrow">arrow_forward</span></a>
<inputclass="form-input"type="text"[ngModel]="userSearchQuery()"(ngModelChange)="userSearchQuery.set($event); onUserSearch()"name="userSearchQuery"placeholder="Search by name or email...">
// Since getUsers('candidate') might not exist perfectly on HR route if we don't change HR route, wait, HR route has getHRCandidates
// Let's rely on standard getUsers which points to getBaseUrl()/users depending on role if properly set. Actually quiz.service.ts uses adminUrl directly for getUsers. Let's see. I will dynamically fetch.