Rename OSS_PROXY_MODEL to DEFAULT_PROXY_MODEL; default Router proxy to Kimi K2.6.

Derive the platform default from moonshotai/kimi-k2 openRouterResolve, add models.dev drift coverage, and promote repos on default-branch workflow pushes when still needs_setup.
This commit is contained in:
Colin McDonnell
2026-05-22 15:52:20 +00:00
committed by pullfrog[bot]
parent fb22cb3ae3
commit 7c5ed7add0
5 changed files with 40 additions and 1 deletions
+7
View File
@@ -570,6 +570,13 @@ export const modelAliases: ModelAlias[] = Object.entries(providers).flatMap(
}))
);
/** OpenRouter target when Router or OSS funding is active and `repo.model` is null. */
const defaultProxyAlias = modelAliases.find((a) => a.slug === "moonshotai/kimi-k2");
if (!defaultProxyAlias?.openRouterResolve) {
throw new Error("DEFAULT_PROXY_MODEL: moonshotai/kimi-k2 missing openRouterResolve");
}
export const DEFAULT_PROXY_MODEL = defaultProxyAlias.openRouterResolve;
// ── resolution ─────────────────────────────────────────────────────────────────
/** resolve a model slug to its concrete models.dev specifier (e.g. "anthropic/claude-opus-4-6") */