Files
opencode/packages/console/scripts/src/backfill-usage-provider.ts
Dax Raad 5f7ae6477b sync
2025-10-04 21:33:47 -04:00

11 lines
334 B
TypeScript

import { Database, eq } from "@opencode-ai/console-core/drizzle/index.js"
import { UsageTable } from "@opencode-ai/console-core/schema/billing.sql.js"
await Database.use(async (tx) => {
await tx
.update(UsageTable)
.set({ model: "grok-code" })
.where(eq(UsageTable.model, "x-ai/grok-code-fast-1"))
.limit(90000)
})