diff options
| author | Frank <[email protected]> | 2025-09-11 19:10:53 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-09-12 11:57:14 -0400 |
| commit | c3dc6d6df647f8e21dfcd9aeaf4d69bc45580020 (patch) | |
| tree | 99c786fb2cefa4ec24142483035b768f330fb0cf /cloud/scripts/src/backfill-usage-provider.ts | |
| parent | ef3425a177d8bc431c69ef7350732723e0c37d62 (diff) | |
| download | opencode-c3dc6d6df647f8e21dfcd9aeaf4d69bc45580020.tar.gz opencode-c3dc6d6df647f8e21dfcd9aeaf4d69bc45580020.zip | |
wip: zen
Diffstat (limited to 'cloud/scripts/src/backfill-usage-provider.ts')
| -rw-r--r-- | cloud/scripts/src/backfill-usage-provider.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cloud/scripts/src/backfill-usage-provider.ts b/cloud/scripts/src/backfill-usage-provider.ts new file mode 100644 index 000000000..553dcb478 --- /dev/null +++ b/cloud/scripts/src/backfill-usage-provider.ts @@ -0,0 +1,10 @@ +import { Database, eq } from "@opencode/cloud-core/drizzle/index.js" +import { UsageTable } from "@opencode/cloud-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) +}) |
