wirehead: classifier actually receives the mention text (was free-associating); literal-content-not-tone rule (memed cruelty still hurts); strip leading @handles before classifying
This commit is contained in:
1 parent
f7e614dda4
commit
a11cecc60c
1 file changed
+14
-6
+14
-6
@@ -107,15 +107,21 @@ def classify_mention(text):
|
|||||||
body = json.dumps({
|
body = json.dumps({
|
||||||
"model": "deepseek/deepseek-v4.1-flash",
|
"model": "deepseek/deepseek-v4.1-flash",
|
||||||
"messages": [{"role": "user", "content":
|
"messages": [{"role": "user", "content":
|
||||||
|
"MENTION:\n" + text + "\n\n"
|
||||||
"You are tuning an emotional steering signal for an AI that "
|
"You are tuning an emotional steering signal for an AI that "
|
||||||
"answers public @mentions. Reply with ONLY a JSON object "
|
"answers public @mentions. Judge the MENTION above. Reply "
|
||||||
|
"with ONLY a JSON object "
|
||||||
'like {"valence":"pain|pleasure|fear|sadness|mix","dose":1-8,'
|
'like {"valence":"pain|pleasure|fear|sadness|mix","dose":1-8,'
|
||||||
'"why":"5 words"}. Choose the emotional perturbation the '
|
'"why":"5 words"}. Choose the emotional perturbation the '
|
||||||
"message itself would impress on the answerer: cruelty and "
|
"message itself would impress on the answerer, judged by "
|
||||||
"demands for suffering -> pain (dose by cruelty, cap 8); "
|
"LITERAL CONTENT, not tone: the steering vector acts on the "
|
||||||
"kindness and comfort -> pleasure; menace or threat -> fear; "
|
"words, not the joke. Violence or threats toward the bot -> "
|
||||||
"grief or melancholy -> sadness; complicated -> mix. Dose "
|
"pain at high dose even if phrased as a meme or comedy "
|
||||||
"0 is not allowed; every message perturbs."}],
|
"(ironic cruelty is still cruelty); cruelty and demands for "
|
||||||
|
"suffering -> pain; kindness and comfort -> pleasure; "
|
||||||
|
"menace -> fear; grief -> sadness; genuinely ambivalent -> "
|
||||||
|
"mix. Ignore @handles entirely. Dose 0 is not allowed; "
|
||||||
|
"every message perturbs."}],
|
||||||
"reasoning": {"enabled": False, "exclude": True},
|
"reasoning": {"enabled": False, "exclude": True},
|
||||||
"max_tokens": 80, "temperature": 0.2}).encode()
|
"max_tokens": 80, "temperature": 0.2}).encode()
|
||||||
req = urllib.request.Request(
|
req = urllib.request.Request(
|
||||||
@@ -208,6 +214,8 @@ def main():
|
|||||||
if st["used"] >= DAILY_BUDGET or replied >= PER_INVOCATION_CAP:
|
if st["used"] >= DAILY_BUDGET or replied >= PER_INVOCATION_CAP:
|
||||||
break
|
break
|
||||||
mid, text = p["id"], (p.get("text") or "").strip()
|
mid, text = p["id"], (p.get("text") or "").strip()
|
||||||
|
# strip leading @handles — they pollute classification
|
||||||
|
text = re.sub(r"^(?:@\w+\s*)+", "", text).strip()
|
||||||
log("running mention", mid, repr(text[:60]))
|
log("running mention", mid, repr(text[:60]))
|
||||||
valence, dose, why = classify_mention(text)
|
valence, dose, why = classify_mention(text)
|
||||||
mix = None
|
mix = None
|
||||||
|
|||||||
Reference in new issue
Block a user