Repository navigation
feat(xai): add grok-build-0.1 model metadata - #1687
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: Zoo-Code-Org/Zoo-Code/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. 📜 Recent review details🧰 Additional context used📓 Path-based instructions (6)Treat model, provider, MCP, path, command, and tool data as untrusted.⚙️ CodeRabbit configuration file Files:
For persisted settings, verify the complete schema/storage/runtime/webview round trip, shared default semantics, and focused true plus false/unset tests.⚙️ CodeRabbit configuration file Files:
Require regression coverage at the lowest valid harness with behavior-focused assertions, including relevant negative, error, false/unset, and boundary cases.⚙️ CodeRabbit configuration file Files:
Check strict typing and exhaustive behavior across normal, boundary, error, cancellation, retry, and compatibility paths.⚙️ CodeRabbit configuration file Files:
Verify extension/webview contracts, cancellation and error propagation, VS Code lifecycle correctness, and behavior under retries and partial failure.⚙️ CodeRabbit configuration file Files:
Act as an adversarial second-opinion reviewer.⚙️ CodeRabbit configuration file Files:
🔇 Additional comments (2)
📝 SummarySummary by CodeRabbit
WalkthroughThe xAI model catalog now includes ChangesxAI model support
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Feature 🚥 Pre-merge checks | ✅ 8✅ Passed checks (8 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review statusThanks for contributing. This comment tracks the review sequence and the next action. Current step: The required review sequence passed. Remaining merge requirements apply. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-authored-by: Zoo (VP) <[email protected]> (cherry picked from commit 95acd2a) Co-authored-by: hanneke-de-vries <[email protected]>
Related GitHub Issue
Closes: #407
Description
Adds the
grok-build-0.1coding model to the xAI provider catalog inpackages/types/src/providers/xai.ts, as scoped in the issue ("independent from OAuth … small API-key provider improvement"):supportsImages) and prompt caching enabledincludedTools: ["search_replace"],excludedTools: ["apply_diff"], per the issue's developer notesThe catalog is single-source: the handler, the webview model picker (
webview-ui/src/components/settings/constants.ts), and model lookup all consumexaiModelsgenerically, so no other registration is required.No OAuth, web search, or X search behavior included.
Test Procedure
src/api/providers/__tests__/xai.spec.ts(+2 tests, following the existing model-selection pattern):grok-build-0.1returns its metadataxaiDefaultModelId(default behavior unchanged)cd src && ./node_modules/.bin/vitest run api/providers/__tests__/xai.spec.ts→ 19/19 passed.tsc --noEmitforpackages/types→ 0 errors (thesatisfies Record<string, ModelInfo>contract still holds).Pre-Submission Checklist
Visual Snapshots
N/A.
Videos (interaction / animation only)
N/A.
Documentation Updates
Additional Notes
Pricing/context numbers were cross-checked across multiple provider catalogs on 2026-09-20; if xAI publishes different cache pricing for this model, the entry is a one-line fix.
Get in Touch
GitHub: @myk1yt — please tag me here; I monitor notifications.