tbckr / sgpt

SGPT is a command-line tool that provides a convenient way to interact with OpenAI models, enabling users to run queries, generate shell commands and produce code directly from the terminal.
MIT License
263 stars 25 forks source link

Support for prmopts #101

Open talwrii opened 1 year ago

talwrii commented 1 year ago

Thanks for your tool. I find it very useful for glueing things together with GPT. Before I write a wrapper for your tool / needless alternative, do you think there is any chance that something like templating would get into this tool?

I was imagining something like this:

echo "name: Dave\n country: France" | sgpt --template "What would a person called {name} be called in {country}"

This would be analogous prompts in Langchain https://docs.langchain.com/docs/components/prompts/.

I would entirely understand if you considered this beyond the scope of this tool. If so I might make my own....

I think a reasonable alternative would be to use something like gomplate for templating, but this is less discoverable.

tbckr commented 1 year ago

Sounds good to me - thanks for the suggestion! I am going to add it to the roadmap. I do not know yet when this feature will be implemented.