Closed dsw7 closed 1 month ago
Right now if I run something like:
gpt run -u -p "What is 2 + 2?"
I get a bunch of output:
--------------------------------------------------------------------------------------------------- Request: { "messages": [ ... } --------------------------------------------------------------------------------------------------- Time (s): 0.500213 --------------------------------------------------------------------------------------------------- Response: { "choices": [ ... } --------------------------------------------------------------------------------------------------- Results: 2 + 2 equals 4. ---------------------------------------------------------------------------------------------------
Which for terminal use is fine. But I want to integrate this project into my vim workflow so it would be nice to have a means to extract only the 2 + 2 equals 4. component.
vim
2 + 2 equals 4.
Impetus
Right now if I run something like:
I get a bunch of output:
Which for terminal use is fine. But I want to integrate this project into my
vim
workflow so it would be nice to have a means to extract only the2 + 2 equals 4.
component.