#chatgpt #chat #repl #gpt #terminal-interface #artificial-intelligence #openai-api

app chat-tty

A command-line chatbot for ChatGPT that supports streaming tokens and history

7 releases

0.3.4 Apr 11, 2023
0.3.3 Apr 10, 2023
0.2.0 Apr 7, 2023
0.1.0 Apr 7, 2023

#23 in #artificial-intelligence

MIT license

17KB
367 lines

The content of this readme was assisted by chat-tty

Rust Version Crates.io Crates.io Crates.io

chat-tty

chat-tty is a terminal-based Rust application that allows you to stream completions from OpenAI's ChatGPT model.

Interact with ChatGPT directly in your terminal and experience lightning-fast completions for any use case, including brainstorming ideas , generating content or casual conversations with the AI. Harness ChatGPT's capabilities quickly and easily in this lightweight console-b ased interface.

Table of Contents

Installation

To build, run and install this application, you need to have the latest version of Rust installed on your computer. You can install Rust by following the instructions at https://www.rust-lang.org/tools/install.

Now, you are ready to install the application!

cargo install chat-tty

Usage

Before using the chat-tty, you need to provide a valid OpenAI API key. Set the OPENAI_KEY environment variable to your Open AI API key:

export OPENAI_KEY=your_api_key

Now, you can simply run the application by executing:

chat-tty

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Dependencies

~10–24MB
~373K SLoC