0.2.5 • Published 11 months ago
gpt4_cli v0.2.5
GPT4_CLI
A way to use chatgpt (but for gpt4) in the terminal
Installation
npm install -g gpt4_cli
USAGE
- Set your
OPENAI_API_KEY
environment 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_PEN
to their corresponding values See The API Reference for more detailsRun the program with
gpt4_cli
and enter your prompt
user@host:~$ gpt4_cli
>
- At the end, type
submit
to send it to GPT
user@host:~ gpt4_cli
> Hello there
> Generate a simple haiku
> submit
User: Hello there
Generate a simple haiku
GPT:
# Answer here
More usage:
- type
regenerate
to regenerate - type
exit
to 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?"