Tuned the Japanese mode system prompt and model better

This commit is contained in:
2026-01-23 17:01:47 +02:00
parent fe0962118b
commit dca58328e4
2 changed files with 90 additions and 2 deletions

View File

@@ -48,8 +48,14 @@ def _get_japanese_instruction() -> str:
"""
Returns the Japanese language instruction to append to context.
Ensures all responses are in Japanese when in Japanese mode.
This is a secondary reminder - the primary enforcement is in the system prompt.
"""
return "\n\n[CRITICAL INSTRUCTION - 重要な指示]\n**YOU MUST RESPOND ENTIRELY IN JAPANESE (日本語). NO ENGLISH ALLOWED.**\nすべての返答は必ず日本語で行ってください。英語での返答は一切禁止されています。\nこれは最優先の指示です。必ず守ってください。"
return """
[日本語モード有効 - Japanese Mode Active]
必ず日本語(ひらがな・カタカナ・漢字)のみで返答してください。
ローマ字・英語は使用禁止です。
"""
def get_complete_context() -> str: