sgpt icon indicating copy to clipboard operation
sgpt copied to clipboard

Support for prmopts

Open talwrii opened this issue 1 year ago • 1 comments

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.

talwrii avatar Aug 03 '23 15:08 talwrii

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.

tbckr avatar Aug 05 '23 18:08 tbckr