• Requires the LALib extension

This came about because someone in <#1101440561442992229> asked for a feature that would allow you to instruct the AI on how to revise a previous swipe. Most people still don't know about the new ephemeral=true option that was added last month. It's quite powerful.

Notice:

Because this uses triple-grave (```) and Discord doesn't like that in their codeblocks (even if the line doesn't start with them...) I have to instead escape those characters and forego the use of codeblocks.

Ergo, Discord's Copy Text option can't be relied upon, so please select and copy the scripts manually.

🤖 Most Sources 🤖

──────────────────────── Revise Swipe QR Script ────────────────────────/inject position=chat depth=0 ephemeral=true scan=true role=system id=revise Rough Draft:{{newline}}```{{newline}}{{lastCharMessage}}{{newline}}```{{newline}}Revise the rough draft above according to the following instructions:{{newline}}```{{newline}}{{input}}{{newline}}``` ||
/setinput ||
/swipes-swipe ||
────────────────────────────────────────────────────────────────────────

<:logo_atom:684028435349110858> GPT <:logo_atom:684028435349110858>

──────────────────────── Revise Swipe QR Script ────────────────────────/inject position=chat depth=0 ephemeral=true scan=true role=system id=revise <rough_draft>{{newline}}{{lastCharMessage}}{{newline}}</rough_draft>{{newline}}Revise the draft inside the `rough_draft` tag above according to the following instructions within the `revisal_instructions` tag:{{newline}}<revisal_instructions>{{newline}}{{input}}{{newline}}</revisal_instructions> ||
/setinput ||
/swipes-swipe ||
────────────────────────────────────────────────────────────────────────

❄️ Claude ❄️

─────────────────── Append this to Assistant Prefill ───────────────────{{trim}}{{noop}}{{getvar::claudeReviseSwipe}}
────────────────────────────────────────────────────────────────────────
──────────────────── Prefill Revise Swipe QR Script ────────────────────/setvar key=claudeReviseSwipe {{newline}}{{newline}}<rough_draft>{{newline}}{{lastCharMessage}}{{newline}}</rough_draft>{{newline}}Revise the draft inside the `rough_draft` tag above according to the following instructions within the `revisal_instructions` tag:{{newline}}<revisal_instructions>{{newline}}{{input}}{{newline}}</revisal_instructions> ||
/setinput ||
/swipes-swipe ||
/flushvar claudeReviseSwipe ||
────────────────────────────────────────────────────────────────────────

Footnote

If you use the Input History extension, you can add a /inputhistory-add {{input}} || line right before the /setinput || line so that the input is not lost.

@69903979550609408 I had the same issue when requesting more significant revisions. I changed the script to say "last response" instead of "rough draft", and "rewrite" instead of "revise". Seems to work now for both small and large revisions.

/setvar key=claudeReviseSwipe {{newline}}{{newline}}<last_response>{{newline}}{{lastCharMessage}}{{newline}}</last_response>{{newline}}Rewrite your last response inside the last_response tag above according to the following instructions within the rewrite_instructions tag:{{newline}}<rewrite_instructions>{{newline}}{{input}}{{newline}}</rewrite_instructions> ||
/setinput ||
/swipes-swipe ||
/flushvar claudeReviseSwipe ||

Edit Report
Pub: 14 Jul 2024 16:47 UTC
Views: 141