mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
Remove deprecated anthropic-beta header values
The `extended-thinking-2025-04-14` and `max-tokens-3-5-sonnet-2025-04-14` beta headers are no longer accepted by the Anthropic API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d3e396753c
commit
7dddc49121
1 changed files with 1 additions and 9 deletions
|
|
@ -149,7 +149,7 @@ in the project. Keep changes minimal and focused on the task.";
|
|||
fn provider_options(&self) -> Option<serde_json::Value> {
|
||||
Some(serde_json::json!({
|
||||
"anthropic": {
|
||||
"beta_headers": ["interleaved-thinking-2025-05-14", "extended-thinking-2025-04-14", "max-tokens-3-5-sonnet-2025-04-14"]
|
||||
"beta_headers": ["interleaved-thinking-2025-05-14"]
|
||||
}
|
||||
}))
|
||||
}
|
||||
|
|
@ -285,14 +285,6 @@ mod tests {
|
|||
headers.contains(&"interleaved-thinking-2025-05-14"),
|
||||
"beta_headers should contain interleaved-thinking header"
|
||||
);
|
||||
assert!(
|
||||
headers.contains(&"extended-thinking-2025-04-14"),
|
||||
"beta_headers should contain extended-thinking header"
|
||||
);
|
||||
assert!(
|
||||
headers.contains(&"max-tokens-3-5-sonnet-2025-04-14"),
|
||||
"beta_headers should contain max-tokens header"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue