ai-lcr · fleet
least-cost routing across all your providers — what you saved & failed overNo calls yet. Point ai-lcr's onCall at this dashboard:
import { createLCR, createHttpSink } from "ai-lcr";
import { after } from "next/server";
createLCR({
models: { /* … */ },
onCall: createHttpSink({
url: process.env.LCR_INGEST_URL + "/api/ingest",
headers: { authorization: `Bearer ${process.env.LCR_INGEST_KEY}` },
project: process.env.LCR_PROJECT,
dispatch: after,
}),
});