Repository navigation
chore(config): update opencode configuration #523
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 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -197,8 +197,8 @@ | |||||||||||||||||||||
| }, | ||||||||||||||||||||||
| "models": { | ||||||||||||||||||||||
| "glm-4-6": { | ||||||||||||||||||||||
| "id": "@preset/glm-4-6", | ||||||||||||||||||||||
| "name": "Preset GLM-4.6 (via OpenRouter)" | ||||||||||||||||||||||
| "id": "@preset/glm-4-7", | ||||||||||||||||||||||
| "name": "Preset GLM-4.7 (via OpenRouter)" | ||||||||||||||||||||||
|
Comment on lines
+200
to
+201
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 key for this model configuration on line 199 is |
||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
Comment on lines
199
to
202
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
# Find repo references to the old key or old/new preset ids
echo "=== Searching for 'glm-4-6' references ==="
rg -n '"glm-4-6"' --type json --type jsonc --type js --type ts . 2>/dev/null || echo "No matches found"
echo ""
echo "=== Searching for '@preset/glm-4-6' references ==="
rg -n '"@preset/glm-4-6"' . 2>/dev/null || echo "No matches found"
echo ""
echo "=== Searching for '@preset/glm-4-7' references ==="
rg -n '"@preset/glm-4-7"' . 2>/dev/null || echo "No matches found"
echo ""
echo "=== Checking config file context ==="
cat -n config/opencode/opencode.jsonc | sed -n '190,210p'Repository: shunkakinoki/dotfiles Length of output: 999 🌐 Web query:
💡 Result: I couldn't find a public OpenRouter documentation page specifically for a builtin preset named "@preset/glm-4-7". OpenRouter's presets feature docs (how to reference presets like @preset/ in API requests) are here: [1]. For GLM‑4.7 model details you can refer to the GLM project/announcements (example: GLM-4.7 overview). [2] If you want the exact preset config for @preset/glm-4-7 (provider routing, system prompt, params, fallbacks), check your OpenRouter dashboard Presets page (organization presets) or ask the OpenRouter team/support to export the preset — presets are managed via the web app and the API as described in the docs. [1][2] Sources: Model key The key is currently Suggested fix "models": {
- "glm-4-6": {
+ "glm-4-7": {
"id": "@preset/glm-4-7",
"name": "Preset GLM-4.7 (via OpenRouter)"
}
}Ensure 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||
| } | ||||||||||||||||||||||
| }, | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
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 model key "glm-4-6" is inconsistent with the updated model ID "@preset/glm-4-7" and name "Preset GLM-4.7 (via OpenRouter)". When updating the model version, the key should also be updated to "glm-4-7" to maintain consistency and avoid confusion. This mismatch could lead to developers referencing the wrong model version.