I think we could probably create a new OpenRefine "AI Services" extension that would generally handle much of the above example coded parts, into easier to work with dialog form:
- AI Services listing - updated/maintained by community - I.E. Hugging Face is a good candidate for this already.
- Extension should allow for custom HTTP headers (to account for the various AI API service endpoints and their lifecycle changes)
- Allow to edit and delete API Keys, maybe locally encrypted into OpenRefine Preferences array
- A Prompt Text input box that allows template variables for GREL column syntax, i.e. "convert the numbers in {{ columns.amount }} to British Pounds"
- Previewing of data manipulations (like our Expression editor gives us, but allows fullscreen temporary grid viewing and undo/redo during a Prompt convo)
- What else do we have as ideas here?