Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.48 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.48 KB

📋🤖 Copy-n-Prompt

A Swiftbar script to copy text that gets prompted to OpenAI's ChatGPT conversation API. The result is ready for you to paste.

Check out the DEMO VIDEO! The demo is a bit outdated already, but still shows how it works.

Installation

git clone https://github.com/ErikDeBruijn/copy-n-prompt
cd copy-n-prompt
mkdir ~/.copy-n-prompt/
cp .openai.yml.example ~/.copy-n-prompt/.openai.yaml
cp prompts.yml.example ~/.copy-n-prompt/prompts.yml

Edit the ~/.copy-n-prompt/.openai.yaml and ensure it has a working OpenAI API key. Sign up at OpenAI and generate one here. Then copy it into the .openai.yaml file.

Copy or hardlink (ln -f source target) either copy-n-prompt.rb or copy-n-prompt.py to the Swiftbar folder.

Ruby vs. Python3 versions

You'll notice that there are both a ruby (.rb) and a python (.py) version. I'm expecting that the Ruby version will be the most mature, going forward. I intend to maintain that one, but PRs concerning the python version are still welcome!

Contributing

I'm not promising to actively maintain or support this, but contributions in the form of Pull requests are very welcome!

Contributors

Jankees van Woezik