cli-gpt

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 4 Imported by: 0

README

CLI GPT - Basic CLI Interface to OpenAI Model Services

MIT Go Report Card CICD

CLI GPT is a simple command line application build around go-openai offering a ChatGPT like experience.

Installation

Install the application

go install github.com/alwitt/cli-gpt@latest

Create a user friendly alias

alias gpt="cli-gpt"

Getting Started

First, create a new user entry.

gpt create user

create-user-entry

Start a new chat session. Select turbo to use the model ChatGPT is based on. For more information regarding the request parameters, see OpenAI API documentation.

gpt create chat

start-new-chat

To append to the currently active chat session (the active chat session has in-focus set to true)

gpt chat

append-to-active-chat

To change the currently active chat session

gpt context select-chat

change-active-chat

To view the complete history of a chat session

gpt describe chat

view-chat-history

Multi-user Support

The application associates chats with a user, and supports multiple users. However, only one user can be active at any point in time.

To change the currently active user

gpt context select-user

change-active-user

Local Development

First verify all unit-tests are passing.

go test ./...

Then build the application.

go build -o gpt .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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