Skip to content

improvement(models): reorder models dropdown#3164

Merged
waleedlatif1 merged 1 commit intostagingfrom
fix/azure
Feb 7, 2026
Merged

improvement(models): reorder models dropdown#3164
waleedlatif1 merged 1 commit intostagingfrom
fix/azure

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

  • reorder models dropdown

Type of Change

  • Improvement

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
Copy link

vercel bot commented Feb 7, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Feb 7, 2026 8:04pm

Request Review

@waleedlatif1 waleedlatif1 merged commit 7b36f92 into staging Feb 7, 2026
7 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/azure branch February 7, 2026 20:05
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 7, 2026

Greptile Overview

Greptile Summary

Reordered the providers object in apps/sim/providers/utils.ts to improve the model dropdown organization in the UI.

Changes:

  • Moved ollama and vllm (local/self-hosted providers) to the top of the list
  • Grouped Azure variants (azure-openai, azure-anthropic) together after major cloud providers
  • Moved openrouter to the end as an aggregator service

Impact:
The order of the providers object affects the UI dropdown display order through getAllProviderIds() which uses Object.keys(providers). This is a purely cosmetic improvement with no functional changes - all 15 providers remain present with identical configurations.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • This is a purely cosmetic change that reorders provider definitions in an object literal. All 15 providers are still present with identical configurations - only their order changed. The reordering follows a logical grouping (local/self-hosted first, major cloud providers, Azure variants together, aggregators last). Since JavaScript object key order is preserved, this will affect UI dropdown ordering as intended. No logic, functionality, or API changes were made.
  • No files require special attention

Important Files Changed

Filename Overview
apps/sim/providers/utils.ts Reordered provider definitions in the providers object to group local/self-hosted providers first, followed by major cloud providers with Azure variants together. No functional changes.

Sequence Diagram

sequenceDiagram
    participant UI as UI Component
    participant Utils as providers/utils.ts
    participant Store as Provider Store
    
    UI->>Utils: getAllProviderIds()
    Utils->>Utils: Object.keys(providers)
    Note over Utils: Returns provider IDs in<br/>definition order
    Utils-->>UI: [ollama, vllm, openai,<br/>anthropic, google, ...]
    UI->>Store: Get provider metadata
    Store-->>UI: Provider details
    UI->>UI: Render dropdown with<br/>providers in order
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

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