From fffaeffb7ac013cdb37622f65a49193d672cfd21 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Mon, 20 Apr 2026 21:25:37 +0200 Subject: [PATCH] Refresh default model IDs for current providers Update auto-generated opencode.json defaults to model IDs that are valid as of April 2026: - anthropic: claude-sonnet-4-5 -> claude-sonnet-4-6 - openai: gpt-4o (retired Apr 3 2026) -> gpt-5.4 - bedrock: anthropic.claude-sonnet-4-5-v1 (invalid) -> global.anthropic.claude-sonnet-4-5-20250929-v1:0 The Bedrock ID now uses the global inference profile (no regional 10% premium) and includes the required date stamp and :0 suffix. --- .env.example | 2 +- entrypoint-user.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 2ee1aba..bc285e8 100644 --- a/.env.example +++ b/.env.example @@ -7,7 +7,7 @@ OPENCODE_PROVIDER=anthropic # Model override (optional, defaults per provider) -# OPENCODE_MODEL=anthropic/claude-sonnet-4-5 +# OPENCODE_MODEL=anthropic/claude-sonnet-4-6 # ── API Keys (set the one matching your provider) ──────────────────── # ANTHROPIC_API_KEY= diff --git a/entrypoint-user.sh b/entrypoint-user.sh index 37aa950..ef3281b 100644 --- a/entrypoint-user.sh +++ b/entrypoint-user.sh @@ -22,7 +22,7 @@ if [ ! -f "$CONFIG_FILE" ] && [ -n "${OPENCODE_PROVIDER:-}" ]; then cat > "$CONFIG_FILE" < "$CONFIG_FILE" < "$CONFIG_FILE" < "$CONFIG_FILE" <