0.2.5 • Published 11 months ago

gpt4_cli v0.2.5

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

GPT4_CLI

A way to use chatgpt (but for gpt4) in the terminal

Installation

npm install -g gpt4_cli

USAGE

  1. Set your OPENAI_API_KEY environment variable
user@host:~$ export OPENAI_API_KEY=sk-*****
  1. (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 details

  2. Run the program with gpt4_cli and enter your prompt

user@host:~$ gpt4_cli
>
  1. 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:
  1. example0000: "Explain quantum computing in simple terms"
  2. example0001: "Got any creative ideas for a 10 year old’s birthday?"
  3. example0002: "How do I make an HTTP request in Javascript?"
0.2.5

11 months ago

0.2.4

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago