Skip to content

Releases: alexwidua/kami

1.1.2

17 Jan 16:05
fef6603
Compare
Choose a tag to compare

Future releases of Kami can be updated right from within the app.

Kami 1.0.1

05 Dec 20:32
a82e62d
Compare
Choose a tag to compare

Minor fixes:

  • fix Use GPT 3.5 instead of GPT-4 for API Key validation (to allow people without GPT-4 access to enter their API key)
  • add Expose the OpenAI API Error code if the API request fails. This should make it easier to debug issues with the app

Kami 1.0

29 Nov 15:02
a82e62d
Compare
Choose a tag to compare

Installation

Download Kami-1.0.zip, unzip the archive and drag the app into your Application folder.

Usage

  1. Launch the app, provide your OpenAI API Key
  2. To pen a JavaScript patch...
  • Using the Shortcut: Select the JavaScript Patch and hit the shortcut (Default: Cmd+J)
  • 🗄️ Using the Context Menu: Right-click the JavaScript Patch > Open with ... > Kami

Caveats

Experimental

Consider this experimental software. One thing to figure out is how to further improve the app's prompt and improve the resulting code/patch quality. If you run into any issues, open an Issue or reach out via Mail/Twitter.

Cost

With every request to GPT-4, the app prepends (a truncated version of) the Origami Studio JavaScript Patch API documentation to the prompt. This is needed to generate the Origami-flavoured JavaScript that drives the patch. This adds an overhead of around 2000 input tokens to every request. In the future, API requests might become cheaper that this becomes negligible, or new APIs such as the Assistant API might make prepending the documentation not necessary anymore.

Permissions

One neat thing is the ability to open JavaScript Patches using the keyboard shortcut. It's quick and simple. For this to work though, the app requires system-level Accessibility Permissions because it emulates a ⌘+C keystroke to copy the JavaScript patch to the clipboard (and then read the Patch data from the clipboard). This is pretty invasive permission to ask for. For what it's worth, the permission is only eber used for that specific purpose. See the PasteboardHandler file for more.

If you don't want to (or can't) give this permission, JavaScript Patches can also be opened via the ‘Open with…’ right-click menu (no permissions are required for that).

Acknowledgements

Luke Haddock, George Kedenburg III for their Origami-GPT-4 experiments and instruction texts, Matthew Mang for their GPT-4 Origami Patch.