feat(providers): add xAI grok-4.5 model#5511
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Recommended xAI pick moves from Reviewed by Cursor Bugbot for commit b96b4b9. Configure here. |
Greptile SummaryThis PR adds xAI's grok-4.5 model to the provider registry and moves the
Confidence Score: 4/5The change is a straightforward model registry addition; the logic is simple and isolated to one file, but the defaultModel field being out of sync with the recommended flag means new users will silently get the older model. The apps/sim/providers/models.ts — verify the Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[xAI Provider Definition] --> B["defaultModel: grok-4.3 — not updated"]
A --> C[models array]
C --> D["grok-4.5 — recommended: true — 500K context"]
C --> E["grok-4.3 — 1M context"]
C --> F["grok-4-latest — deprecated"]
B --> H["getProviderDefaultModel returns grok-4.3"]
D --> I["recommended models list includes grok-4.5"]
style B fill:#f99,stroke:#c00
style D fill:#9f9,stroke:#0a0
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[xAI Provider Definition] --> B["defaultModel: grok-4.3 — not updated"]
A --> C[models array]
C --> D["grok-4.5 — recommended: true — 500K context"]
C --> E["grok-4.3 — 1M context"]
C --> F["grok-4-latest — deprecated"]
B --> H["getProviderDefaultModel returns grok-4.3"]
D --> I["recommended models list includes grok-4.5"]
style B fill:#f99,stroke:#c00
style D fill:#9f9,stroke:#0a0
|
Summary
recommended: truefrom grok-4.3 to grok-4.5Type of Change
Testing
Tested manually (verified pricing/context/release date against docs.x.ai live docs + secondary sources, biome-clean on the changed file)
Checklist