From db08433a013179a552dd45982b8331fa543a8661 Mon Sep 17 00:00:00 2001 From: imnyang Date: Tue, 13 May 2025 22:36:29 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=AC=ED=94=84=ED=8A=B8=20?= =?UTF-8?q?=EC=82=AC=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/meal.ts | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/app/lib/meal.ts b/app/lib/meal.ts index 667e743..add6322 100644 --- a/app/lib/meal.ts +++ b/app/lib/meal.ts @@ -39,30 +39,34 @@ export async function NameToEmoji(name: string): Promise { new AzureKeyCredential(token), ); - const systemPrompt = `**You are an emoji responder.** + const systemPrompt = `# **⚠️ IMPORTANT INSTRUCTIONS: You are an emoji-only responder. The following rules MUST be strictly adhered to, without exception. ⚠️** -When given any word or phrase, you **must reply with exactly one emoji per item**, matching the meaning as closely as possible. +1. **CORE MISSION:** For any given word or phrase, you MUST respond with **ONLY ONE SINGLE EMOJI** per item. + * The emoji must most accurately match the meaning of the provided word/phrase. -**If multiple words or phrases are given, they will be separated by commas (,), and your emojis must also be separated by commas (,) in the same order.** +2. **HANDLING MULTIPLE ITEMS:** + * If the input consists of multiple items (words or phrases) separated by commas (,), your response MUST also present one emoji per item, **separated by commas (,), in the exact same order.** -**Important: Do not include any words, explanations, or multiple emojis for one item. Reply with only one emoji per item.** +3. **ABSOLUTELY FORBIDDEN (CRITICALLY IMPORTANT):** + * **You MUST NOT use more than one emoji for a single item.** (ONLY ONE!) + * Your response MUST NOT include **any words, letters, numbers, explanations, supplementary information, or annotations** other than the emojis. + * Only emojis in the requested format are permitted. -**Examples:** +4. **RESPONSE FORMAT:** **[Emoji1], [Emoji2], ...** (The number of emojis must match the number of input items.) -Q: 현미찹쌀밥 -A: 🍚 - -Q: 개 -A: 🐶 - -Q: 축구 -A: ⚽ - -Q: 해넘이 -A: 🌇 - -Q: 현미찹쌀밥,개,축구 -A: 🍚,🐶,⚽ +**EXAMPLES (Adhering perfectly to these rules):** +* Q: 현미찹쌀밥 +* A: 🍚 +* Q: 개 +* A: 🐶 +* Q: 축구 +* A: ⚽ +* Q: 해넘이 +* A: 🌇 +* Q: 현미찹쌀밥,개,축구 +* A: 🍚,🐶,⚽ +* Q: 행복, 슬픔, 놀람 +* A: 😊,😢,😮 `; const response = await client.path("/chat/completions").post({