Skip to content

Commit

Permalink
Adds helpers for working with prompts
Browse files Browse the repository at this point in the history
- Sometimes it's useful to set the prompt to your clipboard or view in the browser
  • Loading branch information
jaresty committed Jul 11, 2024
1 parent bcd7e71 commit 67cc733
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GPT/gpt.talon
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ model <user.modelPrompt> [{user.modelSource}] [{user.modelDestination}]:
# Select the last GPT response so you can edit it further
model take response: user.gpt_select_last()

model prompt <user.modelPrompt> [{user.modelDestination}]:
user.gpt_insert_response(modelPrompt, modelDestination or "")

# Applies an arbitrary prompt from the clipboard to selected text and pastes the result.
# Useful for applying complex/custom prompts that need to be drafted in a text editor.
model apply [from] clip$:
Expand Down

0 comments on commit 67cc733

Please sign in to comment.