fix(console): allow free Go models past quota
This commit is contained in:
committed by
opencode-agent[bot]
parent
95235df4c8
commit
0442717869
@@ -894,6 +894,12 @@ export async function handler(
|
||||
|
||||
// Validate lite subscription billing
|
||||
if (opts.modelList === "lite" && authInfo.billing.lite && authInfo.lite) {
|
||||
if (
|
||||
Object.values(modelInfo.cost).every((cost) => cost === 0) &&
|
||||
(!modelInfo.cost200K || Object.values(modelInfo.cost200K).every((cost) => cost === 0))
|
||||
)
|
||||
return "lite"
|
||||
|
||||
try {
|
||||
const consoleGoUrl = `https://opencode.ai/workspace/${authInfo.workspaceID}/go`
|
||||
const sub = authInfo.lite
|
||||
|
||||
Reference in New Issue
Block a user