Skip to content

Commit

Permalink
Instruct the AI to escape line breaks correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
harigopal committed Oct 6, 2023
1 parent 609ec52 commit ec65448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/open_ai_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def default_output_prompt
```json
{
"status": "\"passed\" or \"failed\"",
"feedback": "Detailed feedback for the student in markdown format. Aim for a human-like explanation as much as possible"
"feedback": "Detailed feedback for the student in markdown format. Aim for a human-like explanation as much as possible. Make sure that line-breaks are escaped correctly for this JSON response."
}
```
If the student submission is not related to question share a genric feedback
Expand Down

0 comments on commit ec65448

Please sign in to comment.