Skip to content

Commit

Permalink
Clean up GPT Grammar (#80)
Browse files Browse the repository at this point in the history
* adds `last` as a source 
* adds `verbal` as a response option if TTS is installed
* Renamed the list insertionMethod to be responseMethod since it is
clearer with that naming
* renamed the responseMethod `browser` to `windowed` to fit the adverb
grammar better
* Implements a beta command to reverse the chain order and put
`user.text` at the end, allowing for easier chaining and better
recognition.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
C-Loftus and pre-commit-ci[bot] authored Jul 1, 2024
1 parent ce5aa31 commit 5db9ac6
Show file tree
Hide file tree
Showing 17 changed files with 135 additions and 359 deletions.
4 changes: 2 additions & 2 deletions GPT/beta-commands/beta-gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from talon import Module, registry

from ...lib.HTMLBuilder import Builder
from ...lib.pureHelpers import remove_wrapper
from ..gpt import gpt_query
from ..lib.HTMLBuilder import Builder
from ..lib.pureHelpers import remove_wrapper

mod = Module()

Expand Down
2 changes: 1 addition & 1 deletion GPT/beta-commands/beta-gpt.talon
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tag: user.gpt_beta
model find <user.text>: user.gpt_find_talon_commands(user.text)

# Using the context of the text on the clipboard, update the selected text
model blend [from] clip:
model blend clipboard:
clipboard_text = clip.text()
destination_text = edit.selected_text()
result = user.gpt_blend(clipboard_text, destination_text)
Expand Down

This file was deleted.

112 changes: 0 additions & 112 deletions GPT/beta-commands/function-calling/gpt-function-calling.py

This file was deleted.

15 changes: 0 additions & 15 deletions GPT/beta-commands/function-calling/gpt-function-calling.talon

This file was deleted.

113 changes: 0 additions & 113 deletions GPT/beta-commands/function-calling/gpt_callables.py

This file was deleted.

3 changes: 0 additions & 3 deletions GPT/beta-commands/function-calling/readme.md

This file was deleted.

11 changes: 0 additions & 11 deletions GPT/gpt-cursorless.talon

This file was deleted.

Loading

0 comments on commit 5db9ac6

Please sign in to comment.