انتقل إلى المحتوى
#0308
ExecSqlite

Label fifty thousand tickets with a script and a separate wallet

Fifty thousand support tickets, no category column, and product asking which complaints grew last quarter.

label.ts starts with // @ai true, // @ai-model deepseek/deepseek-v4-pro, // @concurrent 5. No imports, no API key in the file: exec injects generateObject and a pre-configured model. The script reads tickets from hoody-sqlite in batches, asks for a category and a confidence per ticket as structured output, and writes the labels back. You hit the URL once on Saturday afternoon.

Tokens route through the Hoody AI Gateway at a 5% markup, drawn from the AI Balance you topped up with $30. The server is flat-rate from the General Balance. The job can exhaust the thirty dollars and stop; it can't reach your server money.

By dinner there's a category column and a chart.

The LLM is a helper variable in a script, and its bill is a balance you chose to fund.