Crates.io | rgpt |
lib.rs | rgpt |
version | 0.3.0 |
source | src |
created_at | 2023-03-01 03:36:47.267902 |
updated_at | 2023-03-02 01:00:41.977404 |
description | A simple and fast shell client for ChatGPT |
homepage | |
repository | https://github.com/linux-techtips/rgpt |
max_upload_size | |
id | 797700 |
size | 65,045 |
$ cargo install rgpt
On your first use, rgpt will prompt you for your api key. You can generate one here
$ rgpt "What is your name"
My name is Sam.
$ rgpt "What is the best programming language"
Rust.
rgpt
can take a description of a command and turn it into shell code
$ rgpt -s "What is the command to install polars for python"
pip install polars
rgpt
is also capable of executing commands in a bash capable shell environments
$ rgpt -se "What is the command to add serde to a rust project"
cargo add serde
Execute command? [Y/N]:
A simple CLI for OpenAI's various text models
Usage: rgpt [OPTIONS] <PROMPT>
Arguments:
<PROMPT>
Options:
--model <MODEL> [default: text-davinci-003]
--max-tokens <MAX_TOKENS> [default: 1024]
-s, --shell
-e, --execute
-h, --help Print help
-V, --version Print version
Copyright (c) 2023 MIT License