0xacx / chatGPT-shell-cli

Simple shell script to use OpenAI's ChatGPT and DALL-E from the terminal. No Python or JS required.
https://gptshell.cc
MIT License
1.05k stars 151 forks source link

pass the output to pipeline to -p #157

Closed reid41 closed 2 months ago

reid41 commented 2 months ago
Before:
$ cat error.log | chatgpt -p "check the log and provide solution"

I cannot directly check logs. However, if you provide details or describe the issue you're facing,
I can help suggest potential solutions or troubleshooting steps.

after:
$ cat error.log | chatgpt -p "check the log and provide solution"

The log indicates that there were errors while downloading metadata for the
'rhel-9-for-x86_64-appstream-rpms' repository due to a 403 status code. To address this issue, you
can try the following solutions:

1. Check network connectivity: Ensure that the server has a stable internet connection and can
access the repository URL without any restrictions.

2. Repository configuration: Verify the repository configuration for any errors and make necessary
corrections.