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
210 stars 23 forks source link

feat: provide input via stdin and as an argument reopened #239

Closed tbckr closed 4 months ago

tbckr commented 4 months ago

Introduce the option to further refine your answer by providing the prompt via stdin and via a cli argument.

Important: The stdin modifier must be provided.

Example:

$ echo "Say: Hello World!" | sgpt stdin 'Replace every "World" word with "ChatGPT"'
Hello ChatGPT!