fix(anthropic,bedrock): align effort levels with Anthropic API docs (#280)

John Jansen and JJ Bot created

Populate reasoning_levels and default_reasoning_effort on the
Anthropic-on-Bedrock entries for the three models that support
the effort parameter, and correct the direct-Anthropic entries
to match Anthropic's own documentation.

Per https://docs.anthropic.com/en/docs/build-with-claude/effort:

  - sonnet-4-6:  levels=[low,medium,high,max],          default=high
  - opus-4-7:    levels=[low,medium,high,xhigh,max],    default=high
  - opus-4-6:    levels=[low,medium,high,max],          default=high

Changes vs. the previous state:

  - bedrock/anthropic.claude-sonnet-4-6: added levels + default
  - bedrock/anthropic.claude-opus-4-7:   added levels + default (incl xhigh, which is Opus-4.7-only per docs)
  - bedrock/anthropic.claude-opus-4-6-v1: added levels + default
  - anthropic/claude-opus-4-7:           added xhigh to levels (Opus 4.7 is the only model that exposes xhigh)
  - anthropic/claude-{sonnet-4-6,opus-4-7,opus-4-6}: default_reasoning_effort medium -> high

The API default per Anthropic's docs is "high" ("Setting effort to \"high\"
produces exactly the same behavior as omitting the effort parameter entirely"),
so the previous "medium" default did not match server behavior.

Co-authored-by: JJ Bot <john.jansen+bot@me.com>

Change summary

internal/providers/configs/anthropic.json | 8 ++++----
internal/providers/configs/bedrock.json   | 6 ++++++
2 files changed, 10 insertions(+), 4 deletions(-)

Detailed changes

internal/providers/configs/anthropic.json 🔗

@@ -18,7 +18,7 @@
       "default_max_tokens": 64000,
       "can_reason": true,
       "reasoning_levels": ["low", "medium", "high", "max"],
-      "default_reasoning_effort": "medium",
+      "default_reasoning_effort": "high",
       "supports_attachments": true
     },
     {
@@ -43,8 +43,8 @@
       "context_window": 1000000,
       "default_max_tokens": 126000,
       "can_reason": true,
-      "reasoning_levels": ["low", "medium", "high", "max"],
-      "default_reasoning_effort": "medium",
+      "reasoning_levels": ["low", "medium", "high", "xhigh", "max"],
+      "default_reasoning_effort": "high",
       "supports_attachments": true
     },
     {
@@ -58,7 +58,7 @@
       "default_max_tokens": 126000,
       "can_reason": true,
       "reasoning_levels": ["low", "medium", "high", "max"],
-      "default_reasoning_effort": "medium",
+      "default_reasoning_effort": "high",
       "supports_attachments": true
     },
     {

internal/providers/configs/bedrock.json 🔗

@@ -17,6 +17,8 @@
       "context_window": 1000000,
       "default_max_tokens": 64000,
       "can_reason": true,
+      "reasoning_levels": ["low", "medium", "high", "max"],
+      "default_reasoning_effort": "high",
       "supports_attachments": true
     },
     {
@@ -53,6 +55,8 @@
       "context_window": 1000000,
       "default_max_tokens": 126000,
       "can_reason": true,
+      "reasoning_levels": ["low", "medium", "high", "xhigh", "max"],
+      "default_reasoning_effort": "high",
       "supports_attachments": true
     },
     {
@@ -65,6 +69,8 @@
       "context_window": 1000000,
       "default_max_tokens": 126000,
       "can_reason": true,
+      "reasoning_levels": ["low", "medium", "high", "max"],
+      "default_reasoning_effort": "high",
       "supports_attachments": true
     },
     {