Remove obsolete [1m] model variants

Since March 2026 the 1M-token context window is the default for Opus 4.6/4.7
and Sonnet 4.6 – no separate variant or beta header needed. The "[1m]" suffix
on model IDs is dead code now and would even produce HTTP 400 against the
current API.

Cleanup:
- Drop 3 [1m] options from the agent model dropdown; default selection moves
  from opus-4-7[1m] to opus-4-7.
- Drop 5 [1m] mappings from ResolveModelId and add a defensive Replace as a
  safety net for any agent record still holding an old value.
- One-shot startup migration on agents.model + chains.model strips the suffix
  so existing chains can be re-chatted without errors.
- ARCHITECTURE.md reflects the slimmed list and explains why 1M is now default.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
MelekiandClaude Opus 4.7 committed 2026-05-31 21:25:35 +02:00
1 parent 271902f32d
commit 112fd70f3b
4 files changed
+17 -16

No files matched your search

+2 -7
View File
@@ -844,7 +844,7 @@ Ein **Agent** definiert die Persönlichkeit und Fähigkeiten der AI:
|-------------------|------------------------------------------------------------------|
| `Name` | Anzeigename |
| `Avatar` | Base64 Data-URL (WebP, 512px) + `AvatarSmall` (WebP, 256px Thumbnail) |
| `Model` | `sonnet`, `sonnet-4-5`, `sonnet-4-6`, `sonnet-4-6[1m]`, `opus`, `opus-4-5`, `opus-4-6`, `opus-4-6[1m]`, `opus-4-7`, `opus-4-7[1m]`, `haiku`, `haiku-4-5` (Default für `opus` ist `claude-opus-4-7`) |
| `Model` | `sonnet`, `sonnet-4-5`, `sonnet-4-6`, `opus`, `opus-4-5`, `opus-4-6`, `opus-4-7`, `haiku`, `haiku-4-5` (Default für `opus` ist `claude-opus-4-7`) |
| `CustomCommands` | JSON-Array mit Slash-Commands (Label + Prompt) |
| `AutoCommit` | `""` (nichts), `"mention"` (anmerken – nur auf User-Request), `"enforce"` (erzwingen – nach jeder Änderung), `"forbid"` (strikt verboten) |
| `UseSoul` | SOUL.md in System-Prompt einbinden |
@@ -860,23 +860,18 @@ Ein **Agent** definiert die Persönlichkeit und Fähigkeiten der AI:
```
"sonnet" → claude-sonnet-4-6
"sonnet[1m]" → claude-sonnet-4-6[1m] (1M Context)
"sonnet-4-5" → claude-sonnet-4-5
"sonnet-4-6" → claude-sonnet-4-6
"sonnet-4-6[1m]" → claude-sonnet-4-6[1m]
"opus" → claude-opus-4-7
"opus[1m]" → claude-opus-4-7[1m] (1M Context)
"opus-4-5" → claude-opus-4-5
"opus-4-6" → claude-opus-4-6
"opus-4-6[1m]" → claude-opus-4-6[1m]
"opus-4-7" → claude-opus-4-7
"opus-4-7[1m]" → claude-opus-4-7[1m]
"haiku" → claude-haiku-4-5
"haiku-4-5" → claude-haiku-4-5
(default) → claude-sonnet-4-6
```
Das `[1m]`-Suffix aktiviert das **1-Million-Token-Context-Fenster** (Anthropic Beta-Feature, längere History/größere Codebases möglich).
**1-Million-Token-Context** ist seit März 2026 Default bei **Opus 4.6/4.7/4.8 + Sonnet 4.6** – kein separater Beta-Header und kein `[1m]`-Suffix mehr nötig. Alte DB-Einträge mit `[1m]`-Suffix werden bei Startup automatisch migriert (`UPDATE agents/chains SET model = REPLACE(model, '[1m]', '')`).
---