Public
Script
Readme

LLM-Safe Fork of @std/sqlite

We found that LLMs have trouble with the inputs and outputs of our @std/sqlite method.

  1. It expects the input to be (sql: string, args: any[]) but it's { sql: string, args: any[] }
  2. 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.

Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
August 19, 2024