rust-console-chat-gpt

Crates.iorust-console-chat-gpt
lib.rsrust-console-chat-gpt
version1.0.1
sourcesrc
created_at2023-09-05 17:38:04.131239
updated_at2023-09-08 07:18:58.261505
descriptionRust CLI for OpenAI Chat API
homepagehttps://github.com/amidabuddha/rust-console-chat-gpt
repositoryhttps://github.com/amidabuddha/rust-console-chat-gpt
max_upload_size
id964623
size118,730
Stefan (amidabuddha)

documentation

README


rust-console-chat-gpt

Rust CLI for OpenAI Chat API

Original project in Python


Table of Contents


DISCLAIMER: The intention and implementation of this code are entirely unconnected and unrelated to OpenAI. There is no affiliation or relationship with OpenAI in any form.


Features

  • Configuration File: Easily customize the app's settings through the config.toml file for complete control over how the app works.
  • Role selection: Users can define the role of the AI in the conversation, allowing for a more personalized and interactive experience.
  • Temperature Control: Adjust the temperature of generated responses to control creativity and randomness in the conversation.
  • Color Customization: Personalize the interface by customizing the colors used in the app.
  • Command Handling: The app responds to various commands entered by the user for easy and intuitive interaction.
  • Error Handling: Clear and helpful error messages to easily understand and resolve any issues.
  • Conversation History: Review previous interactions and save conversations for future reference, providing context and continuity.
  • Token Limit Alerts: Get alerts when approaching the maximum allowed token limit to manage conversation length effectively.
  • Cost Estimation: Inquire about estimated costs of the chat based on the number of tokens used for better cost management.
  • Graceful Exit: Smoothly handle interruptions, ensuring conversations are saved before exiting to avoid loss of progress.
  • A nice team: Actively adding features, open for ideas and fixing bugs.

Overall, this app focuses on providing a user-friendly and customizable experience with features that enhance personalization, control, and convenience.


Installation and Usage

The script should work fine in Linux and macOS* terminals. Yet to be tested on Windows.

  1. Get your API key from HERE

  2. Build the source or download the latest binary from Releases

  3. Run the app and type "help" in the User prompt for a list of supported commands

  4. Enjoy ;)


* code syntax highlighting may look weird in the default macOS terminal

Commit count: 69

cargo fmt