Skip to content

fix(models): restore Anthropic models in landing page compare chart#5584

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/compare-models-anthropic
Jul 11, 2026
Merged

fix(models): restore Anthropic models in landing page compare chart#5584
waleedlatif1 merged 1 commit into
stagingfrom
fix/compare-models-anthropic

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Fix compare-models chart on /models excluding Anthropic entirely — it scored models globally (context + reasoning bonus) and took a flat top-10, so OpenAI's larger GPT-5.x lineup crowded every Claude model out
  • Now selects up to 4 latest non-deprecated models per flagship provider (Anthropic, OpenAI, Google) by release date instead
  • Added deprecated to CatalogModel so retired models (e.g. gpt-4.1-nano, gemini-2.0-flash) are excluded from the comparison

Type of Change

  • Bug fix

Testing

Tested manually

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Jul 11, 2026 12:48am

Request Review

@cursor

cursor Bot commented Jul 11, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Landing-page chart selection and catalog field mapping only; no auth, APIs, or runtime model routing changes.

Overview
Fixes the Compare models charts on /models so Anthropic (and Google) models appear again instead of being crowded out by a global top-10 score dominated by OpenAI’s larger catalog.

Selection logic in selectComparisonModels no longer ranks all models by context window, reasoning bonuses, and reseller penalties. It now walks flagship providers in fixed order (anthropic, openai, google), takes up to four models per provider sorted by newest releaseDate, skips deprecated entries, and still dedupes by display name.

Catalog typing: CatalogModel gains a deprecated field, populated from provider model metadata in utils.ts, so retired models stay out of the comparison.

Reviewed by Cursor Bugbot for commit fae7317. Configure here.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@waleedlatif1 waleedlatif1 merged commit da2371a into staging Jul 11, 2026
13 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/compare-models-anthropic branch July 11, 2026 00:48
@greptile-apps

greptile-apps Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR changes how the landing-page model comparison chart chooses models. The main changes are:

  • Selects recent Anthropic, OpenAI, and Google models per provider.
  • Excludes catalog models marked as deprecated.
  • Adds a required deprecated field to CatalogModel during catalog construction.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
apps/sim/app/(landing)/models/components/model-comparison-charts.tsx Updates comparison model selection to use a fixed provider list, release-date ordering, per-provider caps, and deprecated-model filtering.
apps/sim/app/(landing)/models/utils.ts Adds deprecated to the catalog model shape and defaults missing provider-model flags to false.

Reviews (1): Last reviewed commit: "fix(models): restore Anthropic models in..." | Re-trigger Greptile

@greptile-apps

greptile-apps Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates the landing-page model comparison chart selection. The main changes are:

  • Picks recent models per flagship provider instead of one global ranked list.
  • Limits Anthropic, OpenAI, and Google to four models each.
  • Adds a normalized deprecated flag to catalog models.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
apps/sim/app/(landing)/models/components/model-comparison-charts.tsx Updates the comparison chart to select recent non-deprecated models from Anthropic, OpenAI, and Google.
apps/sim/app/(landing)/models/utils.ts Adds deprecated to CatalogModel and fills it from provider model definitions with a false default.

Reviews (2): Last reviewed commit: "fix(models): restore Anthropic models in..." | Re-trigger Greptile

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit fae7317. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant