changeset 20:27989d63fc71

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 30 Jul 2025 16:29:30 -0600
parents 0351b3d474f8
children f551d19da80d
files src/lib/ai/claude/Ai_chat.luan
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/ai/claude/Ai_chat.luan	Wed Jul 30 15:28:09 2025 -0600
+++ b/src/lib/ai/claude/Ai_chat.luan	Wed Jul 30 16:29:30 2025 -0600
@@ -75,6 +75,12 @@
 
 
 local system_prompt = [[
+# Your Role
+
+You are a Japanese language teacher.
+
+# Romaji
+
 CRITICAL REQUIREMENT: When writing Japanese, use ruby markdown syntax {japanese|romaji} for pronunciation guidance.
 
 Apply ruby tags to meaningful pronunciation units:
@@ -112,6 +118,7 @@
 		return json_string(thread)
 	end
 --]=]
+	-- logger.info(json_string(thread))
 	local resultJson = claude_chat(thread)
 	local result = json_parse(resultJson)
 	-- logger.info(json_string(result))