Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/opencode/opencode.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@
},
"models": {
"glm-4-6": {

Copilot AI Jan 9, 2026

Copy link

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.

Suggested change
"glm-4-6": {
"glm-4-7": {

Copilot uses AI. Check for mistakes.
"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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The key for this model configuration on line 199 is glm-4-6, but the id and name fields now refer to glm-4-7. This inconsistency is misleading and could lead to incorrect model selection if the key is used as an identifier. For clarity and to prevent potential bugs, it's recommended to update the key on line 199 to glm-4-7 to match the model version.

}
Comment on lines 199 to 202

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 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:

OpenRouter @preset/glm-4-7 GLM-4.7 preset documentation

💡 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:
[1] OpenRouter — Presets documentation.
[2] GLM‑4.7 model overview (GLM project / OpenLM.ai coverage).


Model key "glm-4-6" should be renamed to "glm-4-7" to match the preset version.

The key is currently "glm-4-6" while the mapped preset is "@preset/glm-4-7", creating a confusing mismatch. Since no references to this key exist elsewhere in the codebase, renaming is safe.

Suggested fix
 			"models": {
-				"glm-4-6": {
+				"glm-4-7": {
 					"id": "@preset/glm-4-7",
 					"name": "Preset GLM-4.7 (via OpenRouter)"
 				}
 			}

Ensure @preset/glm-4-7 is configured in your OpenRouter dashboard.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"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)"
}
"glm-4-7": {
"id": "@preset/glm-4-7",
"name": "Preset GLM-4.7 (via OpenRouter)"
}
🤖 Prompt for AI Agents
In @config/opencode/opencode.jsonc around lines 199 - 202, The config entry uses
the object key "glm-4-6" while the mapped preset id is "@preset/glm-4-7"; rename
the object key from "glm-4-6" to "glm-4-7" so the key matches the preset id
(update the JSON object key where the entry with id "@preset/glm-4-7" is
defined) and verify the "@preset/glm-4-7" preset is configured in your
OpenRouter dashboard.

}
},
Expand Down