Skip to content

Commit 8669e3a

Browse files
TkaixiangCopilot
andauthored
Update lib/cadet_web/controllers/generate_ai_comments.ex
Co-authored-by: Copilot <[email protected]>
1 parent 2947f3c commit 8669e3a

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)