This repository was archived by the owner on Apr 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
console/app/src/routes/zen/util Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments