-
Notifications
You must be signed in to change notification settings - Fork 1
fix: change default model from grok-code to gpt-5-nano (#133) #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #133
This case study documents the "Model grok-code not supported" error that occurred on 2026-01-25 when xAI ended the free tier for Grok Code Fast 1 on OpenCode Zen. Key findings: - Root cause: xAI business decision to end free tier (not a technical bug) - Impact: All users relying on default grok-code model are affected - Solutions: Use alternative free models (gpt-5-nano, big-pickle) or paid models The case study includes: - Complete timeline of events - Root cause analysis - Immediate workarounds - Long-term solution recommendations - Related external and internal references Fixes #133 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit d1a2e68.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
|
Ok, let's switch default model in our code and docs to Update all code and docs for grok-code model and don't treat it as free anymore. |
|
🤖 AI Work Session Started Starting automated work session at 2026-01-26T10:15:40.262Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
xAI ended the free tier for Grok Code Fast 1 on OpenCode Zen in January 2026. This change: - Updates default model from opencode/grok-code to opencode/gpt-5-nano in JavaScript and Rust implementations - Marks grok-code as discontinued free model in MODELS.md - Updates all documentation (README, EXAMPLES, etc.) - Updates test files to use new default model - Updates provider priority to put free models first - Marks issue #133 case study as resolved Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Summary
This PR resolves the issue where the default model
opencode/grok-codeis no longer available after xAI ended the free tier for Grok Code Fast 1 on OpenCode Zen in January 2026.Changes Made
Default model changed from
opencode/grok-codetoopencode/gpt-5-nanoin:js/src/index.js)rust/src/cli.rs)js/src/tool/task.ts)js/src/provider/provider.ts)Documentation updated:
MODELS.md- Marked grok-code as discontinued free model, updated default model sectionREADME.md- Updated example commands and OpenCode compatibility notejs/README.md- Updated all references to the default modelrust/README.md- Updated CLI options documentationEXAMPLES.md- Updated all example commandsTest files updated - All 30 test files updated to use new default model
Case study updated -
docs/case-studies/issue-133/README.mdmarked as resolvedTest Results
test_args_defaultstest that verifies the new default modelUser Impact
agentwithout specifying--modelwill now useopencode/gpt-5-nanoinstead ofopencode/grok-code--model opencode/grok-codebut users will receive an API error since it's no longer supportedTest plan
echo "hi" | agentto confirm new default model worksCloses #133
🤖 Generated with Claude Code