Don't dedup models across providers.

This commit is contained in:
Mario Zechner 2025-10-29 20:36:54 +01:00
parent 92f8801864
commit 129ec6063b
2 changed files with 1299 additions and 49 deletions

View file

@ -42,17 +42,9 @@ async function fetchOpenRouterModels(): Promise<Model<any>[]> {
if (!model.supported_parameters?.includes("tools")) continue;
// Parse provider from model ID
const [providerPrefix] = model.id.split("/");
let provider: KnownProvider = "openrouter";
let modelKey = model.id;
// Skip models that we get from models.dev (Anthropic, Google, OpenAI)
if (model.id.startsWith("google/") ||
model.id.startsWith("openai/") ||
model.id.startsWith("anthropic/") ||
model.id.startsWith("x-ai/")) {
continue;
}
modelKey = model.id; // Keep full ID for OpenRouter
// Parse input modalities

File diff suppressed because it is too large Load diff