diff --git a/GPT/gpt.py b/GPT/gpt.py index 6da35e4d..b01fbd48 100644 --- a/GPT/gpt.py +++ b/GPT/gpt.py @@ -195,6 +195,9 @@ def gpt_insert_response( cursorless_destination: Any = None, ): """Insert a GPT result in a specified way""" + + if method == "": + method = settings.get("user.model_default_destination") match method: case "above": actions.key("left") diff --git a/lib/talonSettings.py b/lib/talonSettings.py index a5b1e606..a6686b1e 100644 --- a/lib/talonSettings.py +++ b/lib/talonSettings.py @@ -42,6 +42,13 @@ def modelSimplePrompt(matched_prompt) -> str: desc="The temperature of the model. Higher values make the model more creative.", ) +mod.setting( + "model_default_destination", + type=str, + default="paste", + desc="The default insertion destination. This can be overridden contextually to provide application level defaults.", +) + mod.setting( "model_endpoint", type=str,