프롬프트 사기

This commit is contained in:
imnyang 2025-05-13 22:36:29 +09:00
commit db08433a01

View file

@ -39,30 +39,34 @@ export async function NameToEmoji(name: string): Promise<string> {
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({