zen: use gpt-5-nano as small model

This commit is contained in:
Frank
2025-11-14 00:59:00 -05:00
parent 7a03c7fe38
commit 1d8330331c
2 changed files with 5 additions and 2 deletions

View File

@@ -291,7 +291,7 @@ export async function handler(
async function authenticate(modelInfo: ModelInfo, providerInfo: ProviderInfo) {
const apiKey = opts.parseApiKey(input.request.headers)
if (!apiKey) {
if (!apiKey || apiKey === "public") {
if (modelInfo.allowAnonymous) return
throw new AuthError("Missing API key.")
}