Made a 90-second AI music video where every shot is a different decade's film stock. The prompt was longer than the script.
Into LLMs?
Follow LLMs and the makers behind it. Join to spark, save, and remix any of these — the feed is yours to tune.
Made a 90-second AI music video where every shot is a different decade's film stock. The prompt was longer than the script.
Thread: how I wired streaming tool-use with the Claude API in ~40 lines. The trick is buffering partial JSON until the block closes.
for await (const ev of stream) {
if (ev.type === 'content_block_delta')
buf += ev.delta.partial_json ?? '';
if (ev.type === 'content_block_stop')
handleTool(JSON.parse(buf)), buf = '';
}DuckDB + an LLM = ask your CSV questions in English and get a chart back. Here's the 30-line bridge.
const sql = await llm.toSQL(question, schema);
const rows = await duck.query(sql);
render(autoChart(rows));DuckDB + an LLM = ask your CSV questions in English and get a chart back. Here's the 30-line bridge.
const sql = await llm.toSQL(question, schema);
const rows = await duck.query(sql);
render(autoChart(rows));Made a 90-second AI music video where every shot is a different decade's film stock. The prompt was longer than the script.
Thread: how I wired streaming tool-use with the Claude API in ~40 lines. The trick is buffering partial JSON until the block closes.
for await (const ev of stream) {
if (ev.type === 'content_block_delta')
buf += ev.delta.partial_json ?? '';
if (ev.type === 'content_block_stop')
handleTool(JSON.parse(buf)), buf = '';
}