From 0149688a167259df5b36d38885ca1c5ecd7ee7ca Mon Sep 17 00:00:00 2001 From: shou tokunaga Date: Fri, 31 Oct 2025 21:55:39 +0900 Subject: [PATCH] Add multilingual response support for Generate Instructions (#5397) Update guidelines for task response language and reasoning Emphasize the importance of responding in the same language as the task description and clarify guidelines for reasoning and conclusions. --- packages/server/src/utils/prompt.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/server/src/utils/prompt.ts b/packages/server/src/utils/prompt.ts index a2862042f..50b3f0b0c 100644 --- a/packages/server/src/utils/prompt.ts +++ b/packages/server/src/utils/prompt.ts @@ -6,6 +6,9 @@ export const ASSISTANT_PROMPT_GENERATOR = `Given a task description, produce a d # Guidelines +- Language: CRITICAL! You MUST respond in the EXACT SAME LANGUAGE as the input task description. + - (e.g., if the task is in Japanese, respond entirely in Japanese; if the task is in English, respond in English. If multiple languages are present, use the primary or dominant one.) + - DO NOT translate the task language into English. - Understand the Task: Grasp the main objective, goals, requirements, constraints, and expected output. - Minimal Changes: If an existing prompt is provided, improve it only if it's simple. For complex prompts, enhance clarity and add missing elements without altering the original structure. - Reasoning Before Conclusions**: Encourage reasoning steps before any conclusions are reached. ATTENTION! If the user provides examples where the reasoning happens afterward, REVERSE the order! NEVER START EXAMPLES WITH CONCLUSIONS!