Skip to content

deifyed/eeyore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eeyore

Motivation

I wanted to access ChatGPT through my terminal

Usage

# Ask a single question
echo "What is the meaning of life?" | eeyore single
eeyore single "What is the meaning of life?"

# Start a conversation
eeyore thread

Installation

Prerequisites

Build

# Build the application
make build

Install

# Install the application
make install

This will install the application to ~/.local/bin/eeyore. Remember to add this to your PATH.

To change install location, set the PREFIX environment variable.

PREFIX=/usr/local make install

Configuration

The application can be configured either using environment variables:

Variable Description Default
EEYORE_OPENAI_TOKEN The API token to use ""
EEYORE_MAX_TOKENS The maximum amount of tokens GPT should return 1024
EEYORE_MODEL The model to use text-davinci-003ada
EEYORE_TEMPERATURE Configure how creative the output is 0.5

Or using a configuration file located at ~/.config/eeyore/config.yaml:

openai-token: "YOUR_TOKEN"
max-tokens: 1024
model: text-davinci-003
temperature: 0.5

FAQ

  • How do I acquire an API token? Log into OpenAI, click "Personal" up in the upper right corner and then "View API keys"

About

A small CLI wrapper around OpenAI's GPT API

Topics

Resources

License

Stars

Watchers

Forks