Skip to content

Commit 353b533

Browse files
committed
Merge branch 'feat/add-AI-generated-comments-grading' of github.com:source-academy/backend into feat/add-AI-generated-comments-grading
2 parents 58345d4 + 8669e3a commit 353b533

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/cadet_web/controllers/generate_ai_comments.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@ defmodule CadetWeb.AICodeAnalysisController do
169169
end
170170

171171
defp format_system_prompt(course_prompt, assessment_prompt, answer) do
172-
course_prompt || "" <> "\n\n" <> assessment_prompt ||
173-
"" <>
174-
"\n\n" <>
172+
(course_prompt || "") <> "\n\n" <> (assessment_prompt || "") <>
173+
"\n\n" <>
175174
"""
176175
**Additional Instructions for this Question:**
177176
#{answer.question.question["llm_prompt"] || "N/A"}

0 commit comments

Comments
 (0)