Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 1d83303

Browse files
author
Frank
committed
zen: use gpt-5-nano as small model
1 parent 7a03c7f commit 1d83303

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/console/app/src/routes/zen/util/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export async function handler(
291291

292292
async function authenticate(modelInfo: ModelInfo, providerInfo: ProviderInfo) {
293293
const apiKey = opts.parseApiKey(input.request.headers)
294-
if (!apiKey) {
294+
if (!apiKey || apiKey === "public") {
295295
if (modelInfo.allowAnonymous) return
296296
throw new AuthError("Missing API key.")
297297
}

packages/opencode/src/provider/provider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export namespace Provider {
5353

5454
return {
5555
autoload: Object.keys(input.models).length > 0,
56-
options: {},
56+
options: hasKey ? {} : { apiKey: "public" },
5757
}
5858
},
5959
openai: async () => {
@@ -582,6 +582,9 @@ export namespace Provider {
582582
if (providerID === "github-copilot") {
583583
priority = priority.filter((m) => m !== "claude-haiku-4.5")
584584
}
585+
if (providerID === "opencode" || providerID === "local") {
586+
priority = ["gpt-5-nano"]
587+
}
585588
for (const item of priority) {
586589
for (const model of Object.keys(provider.info.models)) {
587590
if (model.includes(item)) return getModel(providerID, model)

0 commit comments

Comments
 (0)