Advertisement
vvccs

shell_gpt

Jun 2nd, 2023 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Installing of chatgpt
  2. commands:
  3. sudo apt install python3 -y
  4. sudo apt install python3-pip -y
  5. sudo apt install python3-venv -y
  6. sudo mkdir /etc/cli-shellgpt
  7. cd /etc/cli-shellgpt
  8. sudo python3 -m venv cli-shellgpt
  9. source cli-shellgpt/bin/activate
  10. sudo pip install shell-gpt
  11.  
  12.  
  13. //can skip this and type sgpt "any question"
  14. //for code write sgpt --code "name of program"
  15.  
  16. nano ./bashrc
  17. export OPENAI_API_KEY=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
  18. source ./bashrc
  19. env
  20.  
  21. //if asked for chatgpt api_key
  22. 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement