mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 16:55:44 +00:00
zen: friendly trial ended message
This commit is contained in:
@@ -404,6 +404,14 @@ export async function handler(
|
||||
}),
|
||||
)
|
||||
|
||||
if (modelData.trialEnded)
|
||||
throw new ModelError(
|
||||
`${t("zen.api.error.trialEnded", {
|
||||
model: modelData.name,
|
||||
link: "https://opencode.ai/go",
|
||||
})}`,
|
||||
)
|
||||
|
||||
logger.metric({ model: modelId })
|
||||
|
||||
return { id: modelId, ...modelData }
|
||||
|
||||
Reference in New Issue
Block a user