anthropic: Fix serialized representation of Effort::XHigh (#57985)

This PR fixes the serialized representation of the `Effort::XHigh`
variant, as it should be `xhigh`, not `x_high`.


https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking#adaptive-thinking-with-the-effort-parameter

Release Notes:

- Fixed using `xhigh` thinking effort with Anthropic models.
This commit is contained in:
Marshall Bowers 2026-05-28 14:20:11 -04:00 committed by GitHub
parent a6b0ee9f36
commit b3d93d4474
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -676,6 +676,8 @@ pub enum Effort {
Low, Low,
Medium, Medium,
High, High,
#[serde(rename = "xhigh")]
#[strum(serialize = "xhigh")]
XHigh, XHigh,
Max, Max,
} }