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

Accept context as positional parameters and also from the standard input #3

Merged
merged 1 commit into from Mar 27, 2023

Conversation

schneiderfelipe
Copy link
Owner

This allows the following:

$ echo "(a nice one)." | cligpt Tell me a joke
Why did the tomato turn red?

Because it saw the salad dressing!

What ChatGPT sees is

Tell me a joke (a nice one).

That is, positional arguments come before the standard input, and everything is single-space joined.

@schneiderfelipe schneiderfelipe merged commit 77d39d6 into main Mar 27, 2023
1 check passed
@schneiderfelipe schneiderfelipe deleted the improvements branch March 27, 2023 21:27
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.

None yet

1 participant