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

https://github.com/mlang/openai-kiss

Simple shell scripts to access OpenAI API
https://github.com/mlang/openai-kiss

cli shell support terminal

Last synced: 5 months ago
JSON representation

Simple shell scripts to access OpenAI API

Awesome Lists containing this project

README

        

# openai-kiss AKA ``hear|ask``
Simple shell scripts to access OpenAI APIs

# Dependencies

curl, jq, ffmpeg

# Installation

Type ``make`` to install to ``$HOME/.local/bin/``.

# Usage

Pipe input to ``ask`` and receive answer on stdout.
Session is tmux pane specific, and answer will be put in a tmux buffer.
Reset chat by calling with ``--new`` option.

For voice input, use ``hear|ask``.

# Configuration

Look in ``~/.config/oepnai-kiss/``.

## Custom prompt

Copy the state to a config file and symlink the executable.

```sh
$ ask << EOP
My custom prompt.
EOP
$ cp ~/.cache/openai-kiss/ask$TMUX_PANE.json ~/.config/openai-kiss/ask-alice.json
$ ln -s ~/.local/bin/ask ~/.local/bin/ask-alice
```