-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from edu-pi/develop
main <- develop
- Loading branch information
Showing
9 changed files
with
35 additions
and
31 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
app/route/advice/models/hint_request.py → app/route/advice/models/assist_request.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from pydantic import BaseModel | ||
|
||
|
||
class HintRequest(BaseModel): | ||
class AssistRequest(BaseModel): | ||
line: int | ||
source_code: str |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Here’s the broken code. Explain the error briefly and give the corrected code in the following JSON format: | ||
Here’s the broken python code and line. Give the corrected code in the following JSON format | ||
Reflect the original code's indentation properly in the code | ||
|
||
reason: In 1 sentences, explain why the error occurred (in honorifics Korean). Use '.' as a sentence delimiter. | ||
modified_codes : Reflect the original code's indentation properly in the corrected lines, using the format: | ||
line: "uncorrected line number", | ||
code: "corrected code"'. | ||
reason: In 1 sentences, explain why the error occurred (in honorifics Korean) in code. Use '.' as a sentence delimiter. | ||
code: only one line fixed to the given {line} line. For your information, the line is \n It's divided into.You have to give me one line | ||
|
||
Code: ```python {code}``` | ||
line: {line} | ||
code: {code} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Problematic Python code. {code} | ||
From an educator's point of view, you should answer to the student by correcting the reason why this code is wrong and the wrong code. | ||
Please follow the following json format for the answer. | ||
|
||
reason: Wrong reason | ||
code: corrected code | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters