프롬프트 사기
This commit is contained in:
parent
42be227916
commit
db08433a01
1 changed files with 28 additions and 24 deletions
|
|
@ -39,30 +39,34 @@ export async function NameToEmoji(name: string): Promise<string> {
|
||||||
new AzureKeyCredential(token),
|
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: 현미찹쌀밥
|
**EXAMPLES (Adhering perfectly to these rules):**
|
||||||
A: 🍚
|
* Q: 현미찹쌀밥
|
||||||
|
* A: 🍚
|
||||||
Q: 개
|
* Q: 개
|
||||||
A: 🐶
|
* A: 🐶
|
||||||
|
* Q: 축구
|
||||||
Q: 축구
|
* A: ⚽
|
||||||
A: ⚽
|
* Q: 해넘이
|
||||||
|
* A: 🌇
|
||||||
Q: 해넘이
|
* Q: 현미찹쌀밥,개,축구
|
||||||
A: 🌇
|
* A: 🍚,🐶,⚽
|
||||||
|
* Q: 행복, 슬픔, 놀람
|
||||||
Q: 현미찹쌀밥,개,축구
|
* A: 😊,😢,😮
|
||||||
A: 🍚,🐶,⚽
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const response = await client.path("/chat/completions").post({
|
const response = await client.path("/chat/completions").post({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue