]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Switch PR review workflow to Opus 4.7 via Mantle endpoint
authorDaan De Meyer <daan@amutable.com>
Thu, 16 Apr 2026 17:04:43 +0000 (19:04 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 Apr 2026 17:41:22 +0000 (19:41 +0200)
Opus 4.7 is in research preview on Bedrock and the Invoke API rejects
the beta headers Claude Code sends ("invalid beta flag"). Enable the
Mantle endpoint, which serves Claude via the native Anthropic API shape
and accepts those headers, and switch the model ID to the Mantle form
(no region prefix or version suffix).

.github/workflows/claude-review.yml

index 3829313cf97d8c5a73566d0694b94fcf7daa7cf7..aacada555e8eb13dddd9cfa3f199a5ac08e3360c 100644 (file)
@@ -192,6 +192,7 @@ jobs:
         env:
           CLAUDE_CODE_DISABLE_BACKGROUND_TASKS: "1"
           CLAUDE_CODE_USE_BEDROCK: "1"
+          CLAUDE_CODE_USE_MANTLE: "1"
         run: |
           mkdir -p ~/.claude
 
@@ -369,7 +370,7 @@ jobs:
           PROMPT
 
           claude \
-            --model us.anthropic.claude-opus-4-6-v1 \
+            --model anthropic.claude-opus-4-7 \
             --effort max \
             --max-turns 200 \
             --setting-sources user \