gptee

Github Contributors Github Stars CI

crates.io status crates.io downloads Rust dependency status

Output from a language model using standard input as the prompt

Installation

  1. Install this tool locally with cargo (recommended).

sh cargo install --locked gptee

Usage

gptee was designed for use within shell scripts and other programs, and also works in interactive shells.

Simple example

sh echo Tell me a joke | gptee

``` Why did the chicken cross the road?

To get to the other side!

```

The following shell script demonstrates how prompts and can "chained" together. (TODO)

```sh ORIG_PROMPT="What is B.O's dog called?"

ENTITIES=$(echo "List out the entities in the prompt below" $ORIG_PROMPT | gptee)

echo "Answer questions given the following context:" $ENTITIES "Answer the query below" $ORIG_PROMPT | gptee ```

Encountered any bugs?

If you encounter any bugs or have any suggestions for improvements, please open an issue on the repository.

License

This project is licensed under the MIT License.