From 95e120e1812775c3beb5d2dc7cdcc070537c9f81 Mon Sep 17 00:00:00 2001 From: PHAN Xuan Quang <20521008@ms.uit.edu.vn> Date: Sat, 16 Nov 2024 14:30:27 +0700 Subject: [PATCH] fix done --- EngAce.Api/Controllers/DictionaryController.cs | 2 +- Events/HealthcheckScope.cs | 2 +- Events/QuizScope.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EngAce.Api/Controllers/DictionaryController.cs b/EngAce.Api/Controllers/DictionaryController.cs index 1364589..407d489 100644 --- a/EngAce.Api/Controllers/DictionaryController.cs +++ b/EngAce.Api/Controllers/DictionaryController.cs @@ -89,7 +89,7 @@ public async Task> Search(string keyword, string? context, catch (Exception ex) { _logger.LogError(ex, "Cannot search for the explaination of '{Keyword}' in the context '{Context}'", keyword, context); - return Created("Success", "## CẢNH BÁO\n EngAce đang bận đi pha cà phê nên tạm thời vắng mặt. bé yêu vui lòng ngồi chơi 3 phút rồi tra lại thử nha.\nYêu bé yêu nhiều lắm luôn á!"); + return Created("Success", "## CẢNH BÁO\n EngAce đang bận đi pha cà phê nên tạm thời vắng mặt. Bạn yêu vui lòng ngồi chơi 3 phút rồi tra lại thử nha.\nYêu bạn hiền nhiều lắm luôn á!"); } } } diff --git a/Events/HealthcheckScope.cs b/Events/HealthcheckScope.cs index 4f9b1da..62cf8bc 100644 --- a/Events/HealthcheckScope.cs +++ b/Events/HealthcheckScope.cs @@ -4,7 +4,7 @@ public static class HealthcheckScope { public static async Task Healthcheck(string apiKey) { - var prompt = "Say 'Hello World' to me!"; + var prompt = "Say `I am Gemini` to me!"; return await Gemini.Generator.GenerateContent(apiKey, "You are my helpful assistant", prompt, false, 10); } } diff --git a/Events/QuizScope.cs b/Events/QuizScope.cs index 0aa9b7c..d174ec0 100644 --- a/Events/QuizScope.cs +++ b/Events/QuizScope.cs @@ -223,7 +223,7 @@ public static async Task> SuggestTopcis(string apiKey, EnglishLevel promptBuilder.AppendLine("This is the decription of my English proficiency according to the CEFR standard:"); promptBuilder.AppendLine(GetLevelDescription(level)); promptBuilder.AppendLine(); - promptBuilder.AppendLine("Please suggest at least 40 completely different topics, each containing fewer than 5 words, that you think are most suitable and interesting for practicing English and match the description of my CEFR level as mentioned above."); + promptBuilder.AppendLine("Please suggest at least 20 completely different topics, each containing fewer than 5 words, that you think are most suitable and interesting for practicing English and match the description of my CEFR level as mentioned above."); promptBuilder.AppendLine("The topics should cover a variety of themes, such as daily life, culture, education, environment, travel, etc., to keep the practice diverse and engaging."); promptBuilder.AppendLine(); promptBuilder.AppendLine("The list of suggested topics should be returned as a JSON array corresponding to the List data type in C# programming language.");