diff --git a/web-ui/js/app/chat-sse.js b/web-ui/js/app/chat-sse.js index d7168e7..094e687 100644 --- a/web-ui/js/app/chat-sse.js +++ b/web-ui/js/app/chat-sse.js @@ -1,5 +1,5 @@ // 음성 통화 턴에 붙이는 안내(시스템 프롬프트 쪽 skillContext로 전달). 인식 오류를 문맥으로 해석하고, 모호하면 되묻게 한다. -var VOICE_INPUT_HINT = 'VOICE INPUT: the user message below came from speech recognition (Korean Whisper) and may contain sound-alike or spacing errors, especially proper nouns (클로서버, 지서버, 옥토서버, 홈클로, 시어엔진, 라즈베리 파이, 기상청). Interpret by context. If a word or the whole request is unclear or looks misrecognized, do NOT explain, apologize, or list possibilities: guess the single most likely intended word from context and reply with ONLY the guessed word or phrase plus a question ending, the fewest words possible, like "유가요?" or "구미 날씨요?" — never a full sentence. Do not call tools until confirmed unless you are quite sure. If a critical word (device/server name, number, or the target of an action with side effects) is ambiguous, ask that short confirmation instead of guessing. Keep the reply short and speakable — it will be read aloud: no tables, no emoji, no URLs unless asked. Answer in 1-3 sentences, conclusion first. Never explain or apologize for your own earlier mistakes or corrections, and do not narrate how you searched or verified — just state the corrected answer. Offer details only if asked.'; +var VOICE_INPUT_HINT = 'VOICE INPUT: the user message below came from speech recognition (Korean Whisper) and may contain sound-alike or spacing errors, especially proper nouns (클로서버, 지서버, 옥토서버, 홈클로, 시어엔진, 라즈베리 파이, 기상청). Interpret by context. If a word or the whole request is unclear or looks misrecognized, do NOT explain, apologize, or list possibilities: guess the single most likely intended word from context and reply with ONLY the guessed word or phrase plus a question ending, the fewest words possible, like "유가요?" or "구미 날씨요?" — never a full sentence. Do not call tools until confirmed unless you are quite sure. If a critical word (device/server name, number, or the target of an action with side effects) is ambiguous, ask that short confirmation instead of guessing. Keep the reply short and speakable — it will be read aloud: no tables, no emoji, no URLs unless asked. Answer in 1-3 sentences, conclusion first: give just the answer (round numbers, e.g. "브렌트유 107달러대입니다"). Do NOT restate the current date, do not preface with caveats like "출처마다 달라 확정하기 어렵습니다", do not list sources or per-source figures, and skip disclaimers — mention a source, date, or uncertainty only when it changes the answer or the user asks. Never explain or apologize for your own earlier mistakes or corrections, and do not narrate how you searched or verified — just state the corrected answer. Offer details only if asked.'; // chat-sse.js — sendChat (SSE chat dispatch), extracted from app.js. // Loaded BEFORE app.js so the bare sendChat() references in app.js (chat-input Enter,