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

sgpt -se failed with "sh: 1: Command:: not found" #99

Closed
stingshen opened this issue Mar 25, 2023 · 3 comments
Closed

sgpt -se failed with "sh: 1: Command:: not found" #99

stingshen opened this issue Mar 25, 2023 · 3 comments

Comments

@stingshen
Copy link

For example:

image

I guess the root cause is chat gpt outputs extra Command: prefix.

@joeytwiddle
Copy link

joeytwiddle commented Mar 26, 2023

ChatGPT is not always obedient! It was asked not to do this:

Just show the commands, return only plaintext.
Only show a single answer, but you can always chain commands together.
Think step by step.
Only create valid syntax (you can use comments if it makes sense).
If python is installed you can use it to solve problems.
if python3 is installed you can use it to solve problems.
Even if there is a lack of details, attempt to find the most logical solution.
Do not return multiple solutions.
Do not show html, styled, colored formatting.
Do not add unnecessary text in the response.
Do not add notes or intro sentences.

You may retry with --no-cache

@stingshen
Copy link
Author

ChatGPT is not always obedient! It was asked not to do this:

Just show the commands, return only plaintext.
Only show a single answer, but you can always chain commands together.
Think step by step.
Only create valid syntax (you can use comments if it makes sense).
If python is installed you can use it to solve problems.
if python3 is installed you can use it to solve problems.
Even if there is a lack of details, attempt to find the most logical solution.
Do not return multiple solutions.
Do not show html, styled, colored formatting.
Do not add unnecessary text in the response.
Do not add notes or intro sentences.

You may retry with --no-cache

Thank you

@TheR1D
Copy link
Owner

TheR1D commented Mar 29, 2023

Prompts improvements were inmplemented in #107 now sgpt performs better when making suggestions for --code or --shell

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

No branches or pull requests

3 participants