mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
wip: zen
This commit is contained in:
parent
c87480cf93
commit
4ceabdffa0
156 changed files with 427 additions and 429 deletions
10
packages/console/scripts/src/backfill-usage-provider.ts
Normal file
10
packages/console/scripts/src/backfill-usage-provider.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { Database, eq } from "@opencode/console-core/drizzle/index.js"
|
||||
import { UsageTable } from "@opencode/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)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue