gpt4_cli
v0.2.5
Published
A way to use chatgpt (but for gpt4) in the terminal
Maintainers
Readme
GPT4_CLI
A way to use chatgpt (but for gpt4) in the terminal
Installation
npm install -g gpt4_cliUSAGE
- Set your
OPENAI_API_KEYenvironment variable
user@host:~$ export OPENAI_API_KEY=sk-*****(Optional) set
GPT4_CLI_MAX_TOKENS,GPT4_CLI_TOP_P,GPT4_CLI_TEMP,GPT4_CLI_FREQ_PEN,GPT4_CLI_PRES_PENto their corresponding values See The API Reference for more detailsRun the program with
gpt4_cliand enter your prompt
user@host:~$ gpt4_cli
>- At the end, type
submitto send it to GPT
user@host:~ gpt4_cli
> Hello there
> Generate a simple haiku
> submit
User: Hello there
Generate a simple haiku
GPT:
# Answer hereMore usage:
- type
regenerateto regenerate - type
exitto exit - you can access examples by typing them into the prompt:
example0000:"Explain quantum computing in simple terms"example0001:"Got any creative ideas for a 10 year old’s birthday?"example0002:"How do I make an HTTP request in Javascript?"
