fix: Correct OpenRouter auto model prefixing
This commit is contained in:
parent
82e838bad8
commit
94525335c3
@ -20,7 +20,7 @@ const PROVIDER_FILTER_THRESHOLD = 30;
|
|||||||
// Models that are internal routing features and should not be shown in selection lists.
|
// 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
|
// 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.
|
// 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 = {
|
type PromptDefaultModelParams = {
|
||||||
config: ClawdbotConfig;
|
config: ClawdbotConfig;
|
||||||
|
|||||||
@ -113,7 +113,7 @@ export async function setVeniceApiKey(key: string, agentDir?: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const ZAI_DEFAULT_MODEL_REF = "zai/glm-4.7";
|
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 const VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF = "vercel-ai-gateway/anthropic/claude-opus-4.5";
|
||||||
|
|
||||||
export async function setZaiApiKey(key: string, agentDir?: string) {
|
export async function setZaiApiKey(key: string, agentDir?: string) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user