#openai #chatgpt #gpt #api #client

app techlead

Techlead CLI is a command-line interface that enables developers to chat with an AI assistant powered by the OpenAI GPT language model, designed specifically to help with your Rust project

3 unstable releases

0.2.0 Nov 8, 2023
0.1.1 Jul 14, 2023
0.1.0 Mar 19, 2023

#460 in Text processing

Download history 24/week @ 2023-11-06 3/week @ 2023-11-13 8/week @ 2023-11-20 9/week @ 2023-11-27 5/week @ 2023-12-04 3/week @ 2023-12-18 6/week @ 2023-12-25 3/week @ 2024-01-01 1/week @ 2024-01-22 6/week @ 2024-01-29 1/week @ 2024-02-05 19/week @ 2024-02-12 63/week @ 2024-02-19

90 downloads per month

Apache-2.0

57KB
668 lines

Crates.io Documentation Codecov Dependency status

Techlead CLI

Techlead CLI is a command-line interface that allows you to chat with an AI assistant powered by the OpenAI GPT language model. This CLI was designed to be used by developers managing a Rust project.

Installation

To install the Techlead CLI, you must have Rust installed. Then, you can simply clone this repository and run the following command from inside the root directory of this repo:

cargo install --path .

This will compile and install the project. Note that you will need an OpenAI API key, which you can obtain from the OpenAI website.

From this moment you can run the techlead command in the root of you project, and get a cli interface to your personal techlead.

Usage

Once the Techlead CLI is up and running, you can start chatting with the AI assistant. The assistant is specifically trained to help with Rust project management, so feel free to ask questions related to that topic. You can also provide command-line arguments to the CLI to pre-populate the chat with a message.

Before running the Techlead CLI, make sure that you have set your OpenAI API key in the .env file. To do so, open the .env file and replace OPENAI_API_KEY=<your_api_key_here> with your actual OpenAI API key.

Here's an example of how to start a chat with a pre-populated message:

techlead "Hello, how can I help you today?"

Credits

This project was made with the Chat GPT Library for Rust, which provides a Rust API for the OpenAI GPT language model.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Dependencies

~12–27MB
~403K SLoC