Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Mar 22, 2024

Conversation

tbckr
Copy link
Owner

@tbckr tbckr commented Mar 22, 2024

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!

@tbckr tbckr linked an issue Mar 22, 2024 that may be closed by this pull request
2 tasks
@tbckr tbckr merged commit e282744 into main Mar 22, 2024
6 checks passed
@tbckr tbckr deleted the 128-provide-input-via-stdin-and-as-an-argument-reopened branch March 22, 2024 13:43
CGamesPlay added a commit to CGamesPlay/dotfiles that referenced this pull request Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide input via stdin and as an argument
1 participant