fig

command module
v0.0.0-...-a8ff08e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: MIT Imports: 3 Imported by: 0

README

fig

fig(ment) | ˈfiɡmənt |

a thing that someone believes to be real but that exists only in their imagination: it really was Ross and not a figment of her overheated imagination.

A not-very-exciting CLI tool to query or chat with the OpenAI API.

Main Go Report Card

Configuration

  • OPENAI_API_KEY (required: docs)
  • OPENAI_MAX_TOKENS (default: 500)

Usage

Usage: main [-a APIKEY] [-t TOKENS] [-m MODEL] <command> [<args>]

Options:
  -a APIKEY              OpenAI API key [env: OPENAI_API_KEY]
  -t TOKENS              maximum number of tokens to return [default: 500, env: OPENAI_MAX_TOKENS]
  -m MODEL               model to use [default: gpt-3.5-turbo]
  --help, -h             display this help and exit

Commands:
  query                  query the model
  chat                   chat with the model

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL