From c488a79f0a6290d0c36d5cbd2a0fb7cdc8228c54 Mon Sep 17 00:00:00 2001 From: Late Night Defender Date: Thu, 15 May 2025 16:50:55 +0700 Subject: [PATCH] Update the prompt and add useful onscreen messages --- src/App.jsx | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index d61be33..1a2b626 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -44,7 +44,7 @@ function App() { body: JSON.stringify({ model: 'gpt-4o', messages: [ - { role: 'system', content: 'You are a helpful English tutor speaking with a learner.' }, + { role: 'system', content: 'You are an English tutor that is kind, fun to be around and can teach English language lessons through adventurous stories very well. You are assigned to talk with a primary school EFL student about a movie they watched yesterday.' }, { role: 'user', content: text } ] }) @@ -87,17 +87,25 @@ function App() { return (
-
AI English Tutor
-
-
You: {transcript}
-
Tutor: {aiReply}
-
+

AI English Tutor

+
เว็บไซต์นี้เป็นการทำ Proof of concept ของการใช้ AI ในการสอนภาษาอังกฤษ โดยเน้นไปที่การจำลองการสื่อสารด้วยเสียง
+
ครูมีทักษะเสริมสร้างจินตนาการ สนุก ตลก ให้ข้อคิด สามารถสอนเนื้อหาผ่านเรื่องราวการผจญภัยได้ดี เช่น คำศัพท์ หรือข้อคิด คำถามปลายเปิด เป็นต้น
+
AI ได้รับบทให้พูดคุยกับนักเรียนในเรื่องภาพยนตร์ที่ได้รับชมไปเมื่อวาน
+ +

วิธีใช้งาน

+
กดปุ่ม Speak ด้านล่าง อนุญาตให้ใช้ไมโครโฟน พูดคุยกับ AI เป็นภาษาอังกฤษ แล้วกด Stop
+
เริ่มจากการทักทายกับ AI แล้วเล่าให้ฟังว่าเมื่อวานรับชมภาพยนตร์เรื่องใดมา AI จะถามคุณเกี่ยวกับภาพยนตร์เรื่องนั้น
+
+
You: {transcript}
+
Tutor: {aiReply}
+
+
); }