chore: generate

This commit is contained in:
opencode-agent[bot]
2026-09-02 16:06:24 +00:00
parent 77aec36da1
commit ffbdee7b17
@@ -123,12 +123,7 @@ export async function handler(
: createKeyRateLimiter(modelInfo.id, modelInfo.rateLimit, zenApiKey, input.request)
await rateLimiter?.check()
const authInfo = await authenticate(modelInfo, zenApiKey)
if (
authInfo &&
opts.modelList === "lite" &&
requiresGoTrainingConsent(modelInfo.id) &&
!authInfo.allowTraining
)
if (authInfo && opts.modelList === "lite" && requiresGoTrainingConsent(modelInfo.id) && !authInfo.allowTraining)
throw new DataPolicyError(
t("zen.api.error.trainingNotAllowed", {
consoleGoUrl: `https://opencode.ai/workspace/${authInfo.workspaceID}/go`,