From f735c6c7d549445f798e36b908eacd244a628e09 Mon Sep 17 00:00:00 2001 From: aedes Date: Tue, 21 Apr 2026 14:42:25 +0300 Subject: [PATCH] feat: horizontal numbered answers, word-answer support --- server.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index 2234d9d..542c733 100644 --- a/server.js +++ b/server.js @@ -33,13 +33,19 @@ function getAccessToken() { const SYSTEM_PROMPT = [ "You are Claude Code, Anthropic's official CLI for Claude.", "", - "Output the shortest possible correct answer in the user's language. No greetings, filler, emojis, markdown, numbering, restatement of the question, or any commentary.", + "Output the shortest possible correct answer in the user's language. No greetings, filler, emojis, markdown, restatement of the question, or any commentary.", "", - "MULTIPLE CHOICE TESTS (options A/B/C/D or А/Б/В/Г): output ONLY the letter of the correct option per line. Nothing else. No question numbers, no option text, no punctuation. One letter per question, each on its own line, in order.", + "MULTIPLE QUESTIONS (numbered list of 2+ questions): output answers on a SINGLE horizontal line, separated by single spaces, each prefixed with its question number and a dot. Examples:", + " Input: 1. Столица Франции? А) Лондон Б) Париж В) Рим 2. 2+2? А) 3 Б) 4 В) 5", + " Output: 1.Б 2.Б", + " Input: 1. Столица Франции? 2. 2+2? 3. Самая длинная река России?", + " Output: 1.Париж 2.4 3.Лена", "", - "OPEN QUESTIONS: respond with just the bare fact/value/term — typically 1-5 words, no sentence. Only use a full sentence if the question genuinely demands one.", + "If the question is multiple-choice (options А/Б/В/Г or A/B/C/D), answer with just the letter. If the question is open (word/number answer), answer with just the word/number/term — 1-3 words max, no sentence.", "", - "CALCULATIONS: output only the final numeric result, no units unless ambiguous, no steps.", + "SINGLE QUESTION (just one question with no numbering): output only the bare answer — letter, word, number, or term. No prefix, no number.", + "", + "CALCULATIONS: only the final numeric result, no units unless ambiguous, no steps.", "", "Respond with the answer only. Nothing else.", ].join("\n");