Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/sim/app/(landing)/models/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
import {
ALL_CATALOG_MODELS,
getPricingBounds,
MODEL_CATALOG_PROVIDERS,
MODEL_PROVIDERS_WITH_CATALOGS,
TOP_MODEL_PROVIDERS,
TOTAL_MODEL_PROVIDERS,
Expand Down Expand Up @@ -90,7 +89,7 @@ export const metadata: Metadata = {
}

export default function ModelsPage() {
const flatModels = MODEL_CATALOG_PROVIDERS.flatMap((provider) =>
const flatModels = MODEL_PROVIDERS_WITH_CATALOGS.flatMap((provider) =>
provider.models.map((model) => ({ provider, model }))
)
const featuredProviderOrder = ['anthropic', 'openai', 'google']
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/(landing)/models/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ assertUniqueGeneratedRoutes(rawProviders)

export const MODEL_CATALOG_PROVIDERS: CatalogProvider[] = rawProviders
export const MODEL_PROVIDERS_WITH_CATALOGS = MODEL_CATALOG_PROVIDERS.filter(
(provider) => provider.models.length > 0
(provider) => provider.models.length > 0 && !provider.isReseller
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TOTAL_MODEL_PROVIDERS still counts excluded reseller providers

Medium Severity

TOTAL_MODEL_PROVIDERS is still derived from MODEL_CATALOG_PROVIDERS.length, which includes reseller providers. Meanwhile, TOTAL_MODELS is derived from ALL_CATALOG_MODELS, which now excludes reseller models. These two counts are displayed together (e.g., "Browse X AI models across Y providers") in page metadata, body text, and the OG image, creating a misleading inconsistency — the provider count Y includes providers whose models aren't reflected in X and who don't appear in the directory.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 6ef40c5. Configure here.

)
export const MODEL_PROVIDERS_WITH_DYNAMIC_CATALOGS = MODEL_CATALOG_PROVIDERS.filter(
(provider) => provider.models.length === 0
Expand Down
Loading