Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
yitong241 committed Nov 10, 2024
1 parent fd85bec commit c1eaaf9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/components/HintBox/HintBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ const HintBox: React.FC<HintBoxProps> = ({ onClose, questionId, code, language }
const hintResponse = await axios.get(`${AI_HINT_SERVICE_URL}/api/hint/${questionId}`);
setHint(hintResponse.data.hint);

const modelAnswerResponse = await axios.post(`${AI_HINT_SERVICE_URL}/api/ai_answer/`, { question_id: questionId, language: language });
const modelAnswerResponse = await axios.post(`${AI_HINT_SERVICE_URL}/api/ai_answer/`, {
question_id: questionId,
language: language,
});
setModelAnswer(modelAnswerResponse.data.ai_answer);

const analysisResponse = await axios.post(`${AI_HINT_SERVICE_URL}/api/code-analysis/`, { code: code, language: language });
const analysisResponse = await axios.post(`${AI_HINT_SERVICE_URL}/api/code-analysis/`, {
code: code,
language: language,
});
// setComplexity(analysisResponse.data.complexity);
setAnalysis(analysisResponse.data.analysis);
} catch (err) {
Expand Down

0 comments on commit c1eaaf9

Please sign in to comment.