Skip to content

Commit

Permalink
fix prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
phanxuanquang committed Jul 25, 2024
1 parent 3d61609 commit dec35e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Events/QuizScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public static class QuizScope
promptBuilder.AppendLine("Output là một mảng JSON tương ứng với class C# sau: ");
promptBuilder.AppendLine("class Quiz");
promptBuilder.AppendLine("{");
promptBuilder.AppendLine(" string Question; // Nội dung câu hỏi bằng tiếng Anh");
promptBuilder.AppendLine(" List<string> Options; // 4 lựa chọn cho người dùng chọn, hãy chắc chắn rẳng chỉ có duy nhất 1 lựa chọn đúng cho câu hỏi");
promptBuilder.AppendLine(" string Question; // Nội dung câu hỏi bằng tiếng Anh, hãy chắc chắn rằng nó phù hợp với trình độ của tôi");
promptBuilder.AppendLine(" List<string> Options; // 4 lựa chọn cho người dùng chọn, hãy chắc chắn rẳng chỉ có duy nhất 1 lựa chọn đúng cho câu hỏi và đáp án phải chính xác tuyệt đối");
promptBuilder.AppendLine(" int RightOptionIndex; // Index của lựa chọn đúng trong mảng Options, hãy chắc chắn rằng đây là index của lựa chọn chính xác và hợp lý nhất cho câu hỏi (chỉ số index có giá trị tối thiểu là 0 và giá trị tối đa là 3");
promptBuilder.AppendLine(" string ExplanationInVietnamese; // Lời giải thích một cách dễ hiểu và hợp lý, phù hợp với trình độ tiếng Anh của tôi");
promptBuilder.AppendLine("}");
Expand Down
4 changes: 2 additions & 2 deletions Events/ReviewScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace Events
{
public static class ReviewScope
{
public const short MinTotalWords = 50;
public const short MaxTotalWords = 300;
public const short MinTotalWords = 30;
public const short MaxTotalWords = 200;
public static async Task<Comment> GenerateReview(string apiKey, EnglishLevel level, string content)
{
var promptBuilder = new StringBuilder();
Expand Down
2 changes: 1 addition & 1 deletion engace.web/src/components/QuizzStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function QuizzStatus({
elevation={2}
>
<Typography variant="h6" sx={{ color: "primary.black" }}>
TRẠNG THÀI LÀM BÀI
TRẠNG THÁI LÀM BÀI
</Typography>
<Stack
spacing={{ xs: 1, sm: 1 }}
Expand Down

0 comments on commit dec35e3

Please sign in to comment.