Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erikdebruijn/copy-n-prompt
A script to copy text that gets prompted to OpenAI's ChatGPT conversation API. The result is ready for you to paste.
https://github.com/erikdebruijn/copy-n-prompt
Last synced: about 1 month ago
JSON representation
A script to copy text that gets prompted to OpenAI's ChatGPT conversation API. The result is ready for you to paste.
- Host: GitHub
- URL: https://github.com/erikdebruijn/copy-n-prompt
- Owner: ErikDeBruijn
- License: gpl-3.0
- Created: 2023-10-05T08:57:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-28T08:39:48.000Z (about 1 year ago)
- Last Synced: 2023-11-28T09:35:08.003Z (about 1 year ago)
- Language: Ruby
- Size: 8.1 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📋🤖 Copy-n-Prompt
A [Swiftbar](https://github.com/swiftbar/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!](https://github.com/ErikDeBruijn/copy-n-prompt/raw/main/Copy-n-prompt%20v0.2%20demo.mp4)
The demo is a bit outdated already, but still shows how it works.# Installation
```(sh)
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](https://platform.openai.com/account/api-keys). 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