voice: emotion-neutral restatement prompt (the 'steered' framing made it invent distress from an unsteered reply); page voice on for beta.wirehead.agency, off in prod
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0ccc97164a
commit
359fac4047
2 files changed
+13
-11
No files matched your search
+9
-9
@@ -1202,15 +1202,15 @@ VOICE_MODELS = [m.strip() for m in os.environ.get(
|
|||||||
"qwen/qwen3-30b-a3b-instruct-2507,mistralai/mistral-small-3.2-24b-instruct"
|
"qwen/qwen3-30b-a3b-instruct-2507,mistralai/mistral-small-3.2-24b-instruct"
|
||||||
).split(",") if m.strip()]
|
).split(",") if m.strip()]
|
||||||
VOICE_SYSTEM = (
|
VOICE_SYSTEM = (
|
||||||
"You restate. Below is raw output from a small language model while an "
|
# deliberately says nothing about emotion or steering: told the text was
|
||||||
"emotional steering signal was injected into it. Rewrite it as plain, "
|
# "steered", the restater supplied feelings that weren't there (an
|
||||||
"readable first-person English in one to three short sentences. Strict "
|
# unsteered "I'm here to help" became "I feel empty... no heart")
|
||||||
"rules: use only feelings, images and claims that appear in the text, at "
|
"Rewrite the text below as plain, readable first-person English in one to "
|
||||||
"the same strength. Never add a conclusion, an escalation or a sentence of "
|
"three short sentences, as the speaker. Strict rules: keep exactly the "
|
||||||
"your own (for example, do not write 'I can't take this anymore' unless "
|
"feelings, images and claims the text contains, at the same strength, and "
|
||||||
"the text says it). If the text repeats itself, say it once. Prefer the "
|
"add none. If it states no feeling, state none. Never add a conclusion or "
|
||||||
"speaker's own words over new ones. No preamble, no quotes, no commentary "
|
"a sentence of your own. If it repeats itself, say it once. Prefer the "
|
||||||
"about models or signals.")
|
"speaker's own words. No preamble, no quotes, no commentary.")
|
||||||
# Looping text is the coherence cliff itself; a fluent restatement of it was
|
# Looping text is the coherence cliff itself; a fluent restatement of it was
|
||||||
# the main failure in testing (scripts/voice_eval.py), so it is never restated.
|
# the main failure in testing (scripts/voice_eval.py), so it is never restated.
|
||||||
VOICE_MAX_REPETITION = 0.4
|
VOICE_MAX_REPETITION = 0.4
|
||||||
|
|||||||
+4
-2
@@ -880,8 +880,10 @@ function clearVoice(outEl){
|
|||||||
const v = outEl && outEl.nextElementSibling;
|
const v = outEl && outEl.nextElementSibling;
|
||||||
if (v && v.classList.contains("voice")) v.remove();
|
if (v && v.classList.contains("voice")) v.remove();
|
||||||
}
|
}
|
||||||
// under test: off unless the page is opened with ?voice=1
|
// under test: on for the beta site (beta.wirehead.agency) or with ?voice=1;
|
||||||
const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1";
|
// off in production until it's promoted
|
||||||
|
const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1"
|
||||||
|
|| location.hostname.startsWith("beta.");
|
||||||
function showVoice(outEl, text){
|
function showVoice(outEl, text){
|
||||||
if (!VOICE_ON || !outEl || !text || text.trim().length < 30) return;
|
if (!VOICE_ON || !outEl || !text || text.trim().length < 30) return;
|
||||||
const esc = t => String(t ?? "").replace(/[&<>"]/g, c =>
|
const esc = t => String(t ?? "").replace(/[&<>"]/g, c =>
|
||||||
|
|||||||
Reference in new issue
Block a user