ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
How to Install Shell-GPT in Ubuntu Linux Terminal (ChatGPT)
ฝัง
- เผยแพร่เมื่อ 14 พ.ค. 2023
- In this video I go over the steps to install shell-gpt which is a python program that allows you to interact with openai which is what chatgpt is based on. I go over installation and configuration. Finally, I show you how to run shell-gpt commands in the terminal
API KEY
platform.opena...
8:06 this is so satisfying
Hey men. I'm getting too many requests error when I run the sgpt -s "write a shell script for ......................"
Use the --shell switch
Ollama from the shell is also cool, especially the ucensored LLMs, super easy. It does not work in the same way with commands and such but it works with mistral, llama2 and lama2-uncensored etc
like with osh?
throwing erro - "too many request for url.." Any solution?
I have the same problem, it seems you must paid for API and your free trial finished.
if you find any solution, please reply to this message.
If you remain on gtp3.5 is really cheap.
I've the same problem
If it's because of the API key, try to generate a new one after the payment. Firstly, I generated the key and paid afterwards and it didn't work so I generated a new one and it works now.
@@JanCharamza How to change the key. python3 sgpt does not provide me the option to re enter the Key. where shall I re enter the new key?
I type python 3 sgpt and is says error missing string prompt. Any idea?
it's a path issue and there is no space between python and 3 zb. python3. however, sgpt is an executable file so ,you don't need to explicitly invoke the interpreter... just qualify with the full path. in my case ~/.local/bin/sgpt hope that helps,
@@KAIZHU.-wf8rx my sgpt script is in this directory: ~/.local/bin/sgpt to run the script, the directory has to be set in the path variable or the whole path to the file has to be included in the command to invoke: ~/.local/bin/sgpt
echo $PATH case sensitive, will tell what you path is set
some times, when you download files you have to reset permissions...
ls -l ~/.local/bin/sgpt ls -l will give a long listing of that r is read, w is write and x execute -rwxrwxr-x 1 so as you can see, I have execute permission, if you don't you can run chmod +x sgpt (first change to the directory where your script is or include the full path to the file: chmod +x ~/.local/bin/sgpt) to set execute permission on the file another thing that tells you the file does not need invocation as an argument to the interpreter is the first line of the script: #!/usr/bin/python3 the 'shebang' #! tells you it can run as a stand alone script...
I get the error: File "/home/my_user/.local/bin/sgpt", line 5, in from sgpt import cli
I use python3.12.1 and pip3 version.
Can you help me please? Thank you so much
Did you find a solution?
api key for gpt 4 or 3.
works fine
NOTE : shell-gpt is not free so rip for those who are getting error 401
includes me