-
Notifications
You must be signed in to change notification settings - Fork 0
feat(opencode): update AI provider configurations and model settings #289
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,21 @@ | ||
| { | ||
| "$schema": "https://opencode.ai/config.json", | ||
| "theme": "opencode", | ||
| "model": "kimi-k2", | ||
| "model": "grok-code", | ||
| "small_model": "kimi-k2", | ||
|
Comment on lines
+4
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unmapped default model will break requests The new default |
||
| "autoupdate": true, | ||
| "agent": { | ||
| "code-reviewer": { | ||
| "description": "Reviews code for best practices and potential issues", | ||
| "model": "anthropic/claude-sonnet-4-20250514", | ||
| "prompt": "You are a code reviewer. Focus on security, performance, and maintainability.", | ||
| "tools": { | ||
| // Disable file modification tools for review-only agent | ||
| "write": false, | ||
| "edit": false | ||
| } | ||
| } | ||
|
Comment on lines
+8
to
+17
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The model |
||
| }, | ||
| "provider": { | ||
| "lmstudio": { | ||
| "npm": "@ai-sdk/openai-compatible", | ||
|
|
@@ -139,5 +152,8 @@ | |
| } | ||
| } | ||
| }, | ||
| "plugin": ["opencode-openai-codex-auth"] | ||
| "plugin": ["opencode-openai-codex-auth"], | ||
| "tui": { | ||
| "scroll_speed": 3 | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default model has been changed to
grok-code. However, this model is not explicitly defined under any of the configured providers (lmstudio,ollama,openai,openrouter). This reliance on implicit model resolution can make the configuration fragile. If the tool fails to find a provider forgrok-code, it could lead to a runtime failure. It would be more robust to explicitly define this model under its provider, for instance, in theopenrouter.modelssection if it's an OpenRouter model.