Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Installing of chatgpt
- commands:
- sudo apt install python3 -y
- sudo apt install python3-pip -y
- sudo apt install python3-venv -y
- sudo mkdir /etc/cli-shellgpt
- cd /etc/cli-shellgpt
- sudo python3 -m venv cli-shellgpt
- source cli-shellgpt/bin/activate
- sudo pip install shell-gpt
- //can skip this and type sgpt "any question"
- //for code write sgpt --code "name of program"
- nano ./bashrc
- export OPENAI_API_KEY=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
- source ./bashrc
- env
- //if asked for chatgpt api_key
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement