Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions config/ccs/agy.settings.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"env": {
"ANTHROPIC_BASE_URL": "http://127.0.0.1:8317/api/provider/agy",
"ANTHROPIC_AUTH_TOKEN": "__CLIPROXY_API_KEY__",
"ANTHROPIC_MODEL": "claude-opus-4-6",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-6",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-6",
"ANTHROPIC_MODEL": "claude-opus-4-7",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-7",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-7",

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.

medium

The ANTHROPIC_DEFAULT_SONNET_MODEL is being updated to claude-opus-4-7. This indicates that the Sonnet model setting is incorrectly mapped to the Opus model version in the underlying template. This will result in higher API costs and potentially different model behavior than intended for Sonnet-level tasks. It should likely be set to claude-sonnet-4-6 to align with the Sonnet tier.

Suggested change
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-7",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",

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 | 🟠 Major

ANTHROPIC_DEFAULT_SONNET_MODEL points to the wrong model.

On Line 7, ANTHROPIC_DEFAULT_SONNET_MODEL is set to claude-opus-4-7. This will route Sonnet-default traffic to Opus unexpectedly.

🔧 Proposed fix
-    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-7",
+    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",
📝 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
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-7",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@config/ccs/agy.settings.template.json` at line 7, The
ANTHROPIC_DEFAULT_SONNET_MODEL value is pointing to Opus ("claude-opus-4-7")
which will misroute Sonnet traffic; update the ANTHROPIC_DEFAULT_SONNET_MODEL
setting to the correct Sonnet model identifier (e.g., "claude-sonnet-2024-12" or
your project's canonical Sonnet model name) so Sonnet-default traffic is routed
correctly, by editing the ANTHROPIC_DEFAULT_SONNET_MODEL entry in the settings
template.

"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-4-6"
}
}
2 changes: 1 addition & 1 deletion config/llm/extra-openai-models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
api_base: http://localhost:8317/v1
api_key_name: cliproxyapi
- model_id: claude-opus
model_name: claude-opus-4-6
model_name: claude-opus-4-7
api_base: http://localhost:8317/v1
api_key_name: cliproxyapi
- model_id: claude-haiku
Expand Down
16 changes: 8 additions & 8 deletions config/openclaw/openclaw.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"api": "openai-completions",
"models": [
{
"id": "claude-opus-4-6",
"name": "Claude Opus 4.6",
"id": "claude-opus-4-7",
"name": "Claude Opus 4.7",
"reasoning": true,
"input": [
"text",
Expand Down Expand Up @@ -220,7 +220,7 @@
"name": "Code Reviewer (Opus)",
"workspace": "__HOME__/.openclaw/workspace/agents/code-review",
"model": {
"primary": "cliproxy/claude-opus-4-6",
"primary": "cliproxy/claude-opus-4-7",
"fallbacks": [
"cliproxy/glm-4.7",
"cliproxy/free"
Expand Down Expand Up @@ -329,7 +329,7 @@
"model": {
"primary": "cliproxy/minimax-m2.7",
"fallbacks": [
"cliproxy/claude-opus-4-6",
"cliproxy/claude-opus-4-7",
"cliproxy/glm-4.7",
"cliproxy/free"
]
Expand Down Expand Up @@ -490,7 +490,7 @@
"name": "Twitter (Opus)",
"workspace": "__HOME__/.openclaw/workspace/agents/twitter",
"model": {
"primary": "cliproxy/claude-opus-4-6",
"primary": "cliproxy/claude-opus-4-7",
"fallbacks": [
"cliproxy/minimax-m2.7",
"cliproxy/glm-4.7",
Expand All @@ -509,7 +509,7 @@
"name": "Mindset Coach",
"workspace": "__HOME__/.openclaw/workspace/agents/mindset",
"model": {
"primary": "cliproxy/claude-opus-4-6",
"primary": "cliproxy/claude-opus-4-7",
"fallbacks": [
"cliproxy/glm-4.7",
"cliproxy/free"
Expand Down Expand Up @@ -545,7 +545,7 @@
"name": "Dev (Opus)",
"workspace": "__HOME__/.openclaw/workspace/agents/dev",
"model": {
"primary": "cliproxy/claude-opus-4-6",
"primary": "cliproxy/claude-opus-4-7",
"fallbacks": [
"cliproxy/glm-4.7",
"cliproxy/free"
Expand Down Expand Up @@ -625,7 +625,7 @@
"name": "Strategy (Opus)",
"workspace": "__HOME__/.openclaw/workspace/agents/strategy",
"model": {
"primary": "cliproxy/claude-opus-4-6",
"primary": "cliproxy/claude-opus-4-7",
"fallbacks": [
"cliproxy/glm-4.7",
"cliproxy/free"
Expand Down
8 changes: 4 additions & 4 deletions config/opencode/opencode.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"apiKey": "{env:CLIPROXY_API_KEY}"
},
"models": {
"claude-opus-4-6": {
"name": "Claude Opus 4.6 (via shunkakinoki's CLIProxy)"
"claude-opus-4-7": {
"name": "Claude Opus 4.7 (via shunkakinoki's CLIProxy)"
},
"claude-sonnet-4-6": {
"name": "Claude Sonnet 4.6 (via shunkakinoki's CLIProxy)"
Expand Down Expand Up @@ -58,8 +58,8 @@
"apiKey": "{env:CLIPROXY_API_KEY}"
},
"models": {
"claude-opus-4-6": {
"name": "Claude Opus 4.6 (via local CLIProxyAPI)"
"claude-opus-4-7": {
"name": "Claude Opus 4.7 (via local CLIProxyAPI)"
},
"claude-sonnet-4-6": {
"name": "Claude Sonnet 4.6 (via local CLIProxyAPI)"
Expand Down
4 changes: 2 additions & 2 deletions config/pi/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
"maxTokens": 65536
},
{
"id": "claude-opus-4-6",
"name": "Claude Opus 4.6",
"id": "claude-opus-4-7",
"name": "Claude Opus 4.7",
"reasoning": true,
"input": [
"text",
Expand Down
2 changes: 1 addition & 1 deletion models.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"claude-opus": "claude-opus-4-6",
"claude-opus": "claude-opus-4-7",
"claude-sonnet": "claude-sonnet-4-6",
"claude-haiku": "claude-haiku-4-5-20251001",
"gpt": "gpt-5.4",
Expand Down
Loading