mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 13:09:46 +00:00
wip: zen
This commit is contained in:
parent
ef3425a177
commit
c3dc6d6df6
3 changed files with 13 additions and 3 deletions
10
cloud/scripts/src/backfill-usage-provider.ts
Normal file
10
cloud/scripts/src/backfill-usage-provider.ts
Normal file
|
|
@ -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)
|
||||
})
|
||||
|
|
@ -1 +0,0 @@
|
|||
// placeholder
|
||||
Loading…
Add table
Add a link
Reference in a new issue