Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rpdelaney/gptalk

A little cli app to run various LLM workflows for me
https://github.com/rpdelaney/gptalk

Last synced: about 1 month ago
JSON representation

A little cli app to run various LLM workflows for me

Awesome Lists containing this project

README

        

GPTalk
======

``gptalk`` is a command-line grab bag of workflows I often use with LLMs.
`ChatGPT `__ is the only supported back-end.

Demo
----
GPTalk's commands can perform pre-processing. For example, if asked to summarize
a YouTube video, it will quietly extract the subtitles to the video and print a
summary:

|asciicast|

.. |asciicast| image:: https://asciinema.org/a/UDieN0MgIUfBBJluaiKl4aY8z.svg
:target: https://asciinema.org/a/UDieN0MgIUfBBJluaiKl4aY8z

Installation
------------

I recommend `pipx `__ for managing python
modules in your interactive shell.

.. code:: console

$ poetry build && pipx install .

Usage
-----

.. code:: console

$ gptalk --help
Usage: gptalk [OPTIONS] COMMAND [ARGS]...

Do some stuff with ChatGPT.

Options:
--version Show the version and exit.
--help Show this message and exit.

Commands:
howdoi Like `howdoi` but ChatGPT instead of StackOverflow.
outline Generate MECE outline of an arbitrary topic.
subsfix Fix subtitles generated with speech to text.
ticket Create a task ticket using a basic WHAT/WHY/AC format.
tldr Provide a tl;dr on a stream.
vcard Read unstructured data and output a contact card (VCF).

``gptalk`` has various subcommands. Data is read from standard input; if
not found, your $EDITOR will be opened.

Development
-----------

To install development dependencies, you will need ``poetry`` and
``pre-commit``:

.. code:: console

$ pipx install poetry pre-commit
[...]
$ cd gptalk
$ pre-commit install --install-hooks
[...]
$ poetry install && poetry shell