Crates.io | iwt |
lib.rs | iwt |
version | 0.1.0 |
source | src |
created_at | 2023-07-17 01:03:05.367427 |
updated_at | 2023-07-17 01:03:05.367427 |
description | I Wish To.... transform piped data using OpenAI GPT API LLM |
homepage | https://github.com/awwaiid/iwt |
repository | https://github.com/awwaiid/iwt |
max_upload_size | |
id | 918065 |
size | 47,918 |
A cli pipeline helper tool, backed by openai, inspired by
rg
,jq
, etc. But you know .... magic instead of science. Make a wish!
This is currently using the OpenAI API. I don't have access to GPT-4 API yet, so this is using gpt-3.5-turbo-16k
. Eventually that should be configurable, and even cooler would be to support alternate APIs or local models. Let's see if we can get it working at all first though, k?
First, set up your OpenAI API key:
export OPENAI_API_KEY=yourkeyhere
Generally: <some command> | iwt <some wish> | <some other command>
Example: curl https://news.ycombinator.com | iwt turn this into a csv of articles with title, domain name, link, points > out.csv
That should output a csv with a row for each article and a title, domain name, link, and points. Yup. Like magic.