mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 19:24:22 +01:00
11 lines
328 B
TypeScript
11 lines
328 B
TypeScript
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)
|
|
})
|