Docs: Model configuration example missing name property #3695

Closed
opened 2026-02-16 17:41:08 -05:00 by yindo · 1 comment
Owner

Originally created by @anntnzrb on GitHub (Dec 20, 2025).

Originally assigned to: @jayair on GitHub.

Motivation

I wanted to have two versions of claude-opus-4-5—one with extended thinking enabled and one without:

"anthropic": {
  "models": {
    "claude-opus-4-5": {
      "name": "*Claude Opus 4.5 (Reasoning)",
      "options": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
    },
    "claude-opus-4-5": {
      "name": "*Claude Opus 4.5 (Non-Reasoning)", 
      "options": { "thinking": { "type": "disabled" } },
    },
  },
},

This doesn't work—the second entry overwrites the first since they share the same key.

After reading the docs, I tried using different keys but couldn't figure out how to keep them pointing to the same underlying model. I had to dig into the source code to discover the id property exists and solves this exact problem.

The gap

The current example in /docs/models shows id but omits name:

"gpt-5-high": {
  "id": "gpt-5",
  "options": { ... },
},

Without seeing name in the example, it's not clear that you can fully customize how the model appears in the UI while using id to reference the actual API model.

Originally created by @anntnzrb on GitHub (Dec 20, 2025). Originally assigned to: @jayair on GitHub. ### Motivation I wanted to have two versions of `claude-opus-4-5`—one with extended thinking enabled and one without: ```jsonc "anthropic": { "models": { "claude-opus-4-5": { "name": "*Claude Opus 4.5 (Reasoning)", "options": { "thinking": { "type": "enabled", "budgetTokens": 10000 } }, }, "claude-opus-4-5": { "name": "*Claude Opus 4.5 (Non-Reasoning)", "options": { "thinking": { "type": "disabled" } }, }, }, }, ``` This doesn't work—the second entry overwrites the first since they share the same key. After reading the docs, I tried using different keys but couldn't figure out how to keep them pointing to the same underlying model. I had to dig into the source code to discover the `id` property exists and solves this exact problem. ### The gap The current example in `/docs/models` shows `id` but omits `name`: ```jsonc "gpt-5-high": { "id": "gpt-5", "options": { ... }, }, ``` Without seeing `name` in the example, it's not clear that you can fully customize how the model appears in the UI while using `id` to reference the actual API model.
yindo added the docs label 2026-02-16 17:41:08 -05:00
yindo closed this issue 2026-02-16 17:41:08 -05:00
Author
Owner

@anntnzrb commented on GitHub (Dec 20, 2025):

Addressed in #5853

@anntnzrb commented on GitHub (Dec 20, 2025): Addressed in #5853
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3695