Skip to content

Commit 6ef40c5

Browse files
waleedlatif1claude
andauthored
fix(models): exclude reseller providers from model catalog pages (#4117)
* fix(models): exclude reseller providers from model catalog pages Reseller providers like OpenRouter, Fireworks, Azure, Vertex, and Bedrock are aggregators that proxy other providers' models. Their model detail pages were generating broken links. Filter them out of MODEL_PROVIDERS_WITH_CATALOGS so they don't generate static pages or appear as clickable entries in the model directory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(models): use filtered catalog for JSON-LD structured data Switch flatModels in page.tsx from MODEL_CATALOG_PROVIDERS to MODEL_PROVIDERS_WITH_CATALOGS so the Schema.org ItemList excludes reseller models, matching TOTAL_MODELS and avoiding broken URLs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 85f1d96 commit 6ef40c5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/sim/app/(landing)/models/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
import {
1212
ALL_CATALOG_MODELS,
1313
getPricingBounds,
14-
MODEL_CATALOG_PROVIDERS,
1514
MODEL_PROVIDERS_WITH_CATALOGS,
1615
TOP_MODEL_PROVIDERS,
1716
TOTAL_MODEL_PROVIDERS,
@@ -90,7 +89,7 @@ export const metadata: Metadata = {
9089
}
9190

9291
export default function ModelsPage() {
93-
const flatModels = MODEL_CATALOG_PROVIDERS.flatMap((provider) =>
92+
const flatModels = MODEL_PROVIDERS_WITH_CATALOGS.flatMap((provider) =>
9493
provider.models.map((model) => ({ provider, model }))
9594
)
9695
const featuredProviderOrder = ['anthropic', 'openai', 'google']

apps/sim/app/(landing)/models/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ assertUniqueGeneratedRoutes(rawProviders)
552552

553553
export const MODEL_CATALOG_PROVIDERS: CatalogProvider[] = rawProviders
554554
export const MODEL_PROVIDERS_WITH_CATALOGS = MODEL_CATALOG_PROVIDERS.filter(
555-
(provider) => provider.models.length > 0
555+
(provider) => provider.models.length > 0 && !provider.isReseller
556556
)
557557
export const MODEL_PROVIDERS_WITH_DYNAMIC_CATALOGS = MODEL_CATALOG_PROVIDERS.filter(
558558
(provider) => provider.models.length === 0

0 commit comments

Comments
 (0)