fix: Correct OpenRouter auto model prefixing

This commit is contained in:
Trent Pierce 2026-01-26 15:21:37 -06:00
parent 82e838bad8
commit 94525335c3
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ const PROVIDER_FILTER_THRESHOLD = 30;
// Models that are internal routing features and should not be shown in selection lists.
// These may be valid as defaults (e.g., set automatically during auth flow) but are not
// directly callable via API and would cause "Unknown model" errors if selected manually.
const HIDDEN_ROUTER_MODELS = new Set(["openrouter/auto"]);
const HIDDEN_ROUTER_MODELS = new Set(["openrouter/auto", "openrouter/openrouter/auto"]);
type PromptDefaultModelParams = {
config: ClawdbotConfig;

View File

@ -113,7 +113,7 @@ export async function setVeniceApiKey(key: string, agentDir?: string) {
}
export const ZAI_DEFAULT_MODEL_REF = "zai/glm-4.7";
export const OPENROUTER_DEFAULT_MODEL_REF = "openrouter/auto";
export const OPENROUTER_DEFAULT_MODEL_REF = "openrouter/openrouter/auto";
export const VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF = "vercel-ai-gateway/anthropic/claude-opus-4.5";
export async function setZaiApiKey(key: string, agentDir?: string) {