An open API service indexing awesome lists of open source software.

https://github.com/tistaharahap/young-tista


https://github.com/tistaharahap/young-tista

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# Young Tista

This is a simple Python CLI tool to interact with GPT-3's completion API. Fed the AI my past blog posts and used it to be able to ask anything to my younger me.

## Running In The CLI

```shell
$ git clone [email protected]:tistaharahap/young-tista.git
$ cd young-tista
$ poetry shell
$ poetry install
$ tista --help
```

When you run without the `--help` flag, it will ask you to input a question. The question will be sent to the AI and the response will be printed out.

## Running As An API

```shell
$ git clone [email protected]:tistaharahap/young-tista.git
$ cd young-tista
$ poetry shell
$ poetry install
$ cp run-api.sh.example run-api.sh
$ vim run-api.sh # edit the env vars
$ ./run-api.sh
```

You need MongoDB to store the questions.

## Credit

Read a tweet by [Michelle Huang](https://twitter.com/michellehuang42) and worked on based on her work.