8000 GitHub - nik2203/mpca-proj
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nik2203/mpca-proj

Repository files navigation

CHATGPT ON Linux Terminal

Here we will be using the chatgpt api to send prompts and receive answer which will be displayed on the terminal.

Step 1:

Go to openai's website and login to your account (create an account if you don't have one) and then go to this website

Step 2:

Generate an API key by clicking on the Create new secret key button. Copy the key and store it in a text file say api.txt

Step 3:

Run the following command: echo "api-key=$(cat api.txt) >> .bashrc

Step 4:

git clone this repo with the command: git clone https://github.com/n1haldev/gpt_on_cli

Step 5:

enter the directory using: cd gpt_on_cli
and then run the command: chmod +x gpt

Step 6:

copy the file to /usr/bin by running the command: sudo cp gpt /usr/bin

That's it. Run the 'gpt' command to enter active query mode and type exit as query to exit the query mode.

Hope you had fun setting this up :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0