mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
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:
parent
a6b0ee9f36
commit
b3d93d4474
1 changed files with 2 additions and 0 deletions
|
|
@ -676,6 +676,8 @@ pub enum Effort {
|
||||||
Low,
|
Low,
|
||||||
Medium,
|
Medium,
|
||||||
High,
|
High,
|
||||||
|
#[serde(rename = "xhigh")]
|
||||||
|
#[strum(serialize = "xhigh")]
|
||||||
XHigh,
|
XHigh,
|
||||||
Max,
|
Max,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue