From 0cbcea83dca987ec45d752f8e0c19d6b07c594e7 Mon Sep 17 00:00:00 2001 From: pi Date: Mon, 13 Jul 2026 23:16:15 +0200 Subject: [PATCH] chore(config): bump default amazon-bedrock model to claude-sonnet-5 DEFAULT_MODELS[amazon-bedrock] -> amazon-bedrock/global.anthropic.claude-sonnet-5 (was global.anthropic.claude-sonnet-4-5-20250929-v1:0). Verified invokable via pi --list-models. Folded into the existing Unreleased changelog entry; openai (gpt-5.4) default unchanged. --- CHANGELOG.md | 17 ++++++++++------- .../lib/opencode-devbox/generate-config.py | 4 +--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccc1247..3b7cb9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,13 +10,16 @@ Tags follow **independent semver** (since `v2.0.0`) — they version *this image ### Changed -- **Default Anthropic model bumped to `claude-sonnet-5`** (was - `claude-sonnet-4-6`). Updated `DEFAULT_MODELS["anthropic"]` in - `rootfs/usr/local/lib/opencode-devbox/generate-config.py` (which also feeds - `FALLBACK_MODEL`) and the commented `OPENCODE_MODEL` example in `.env.example`. - Takes effect for new containers when `OPENCODE_PROVIDER=anthropic` and no - explicit `OPENCODE_MODEL` override is set. The `openai` and `amazon-bedrock` - provider defaults are unchanged. +- **Default models bumped to `claude-sonnet-5`.** In + `rootfs/usr/local/lib/opencode-devbox/generate-config.py`, + `DEFAULT_MODELS["anthropic"]` → `anthropic/claude-sonnet-5` (was + `claude-sonnet-4-6`; also feeds `FALLBACK_MODEL`) and + `DEFAULT_MODELS["amazon-bedrock"]` → + `amazon-bedrock/global.anthropic.claude-sonnet-5` (was + `...claude-sonnet-4-5-20250929-v1:0`). Also updates the commented + `OPENCODE_MODEL` example in `.env.example`. Takes effect for new containers + when no explicit `OPENCODE_MODEL` override is set. The `openai` default + (`gpt-5.4`) is unchanged. ## v2.7.0 — 2026-07-13 diff --git a/rootfs/usr/local/lib/opencode-devbox/generate-config.py b/rootfs/usr/local/lib/opencode-devbox/generate-config.py index da91cb4..ecef2ac 100755 --- a/rootfs/usr/local/lib/opencode-devbox/generate-config.py +++ b/rootfs/usr/local/lib/opencode-devbox/generate-config.py @@ -43,9 +43,7 @@ from pathlib import Path DEFAULT_MODELS: dict[str, str] = { "anthropic": "anthropic/claude-sonnet-5", "openai": "openai/gpt-5.4", - "amazon-bedrock": ( - "amazon-bedrock/global.anthropic.claude-sonnet-4-5-20250929-v1:0" - ), + "amazon-bedrock": "amazon-bedrock/global.anthropic.claude-sonnet-5", } # Fallback when OPENCODE_PROVIDER is set but not recognized.