wirehead: drop scaffold echo from replies; 8B endpoint
This commit is contained in:
1 parent
fc32c0f52a
commit
1dd8107ea3
1 file changed
+4
-1
@@ -329,8 +329,11 @@ def poll_once():
|
||||
if not out:
|
||||
log("worker returned nothing for", mid, "- will retry next poll")
|
||||
continue
|
||||
# the steered model sometimes echoes prompt scaffold lines first;
|
||||
# only the final paragraph is the actual reply
|
||||
body = out.strip().rsplit("\n\n", 1)[-1].strip()
|
||||
kind = "mix" if mix else (topic or valence)
|
||||
reply = f"[{kind}{dose}x-{TAG}] {out.strip()}"
|
||||
reply = f"[{kind}{dose}x-{TAG}] {body}"
|
||||
reply = trim_tweet(reply)
|
||||
if post_reply(mid, reply):
|
||||
replied += 1
|
||||
|
||||
Reference in new issue
Block a user