Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
LLM-Safe Fork of @std/sqlite
We found that LLMs have trouble with the inputs and outputs of our @std/sqlite method.
- It expects the input to be
(sql: string, args: any[])
but it's{ sql: string, args: any[] }
- It expects the output to be objects, but they are arrays
Instead of struggling to teach it, we built this val to be a wrapper around @std/sqlite that adheres to what the LLMs expect.
This val is also backwards-compatible with @std/sqlite, so we're considering merging it in.