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
- Host: GitHub
- URL: https://github.com/mlang/openai-kiss
- Owner: mlang
- Created: 2023-03-21T08:57:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T07:39:59.000Z (over 1 year ago)
- Last Synced: 2024-08-14T00:30:29.450Z (9 months ago)
- Topics: cli, shell, support, terminal
- Language: Shell
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```