From a15f408f0c37e6524a9ade42f9ef56c0ca7fd62f Mon Sep 17 00:00:00 2001 From: David Soria Parra <167242713+dsp-ant@users.noreply.github.com> Date: Wed, 13 Nov 2024 20:04:37 +0000 Subject: [PATCH] anthropic: Remove stable headers (#20595) The tool and context length headers are now stable and no longer needed. Release Notes: - N/A --- crates/anthropic/src/anthropic.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/anthropic/src/anthropic.rs b/crates/anthropic/src/anthropic.rs index cc82380fa2..f9d70cd7f3 100644 --- a/crates/anthropic/src/anthropic.rs +++ b/crates/anthropic/src/anthropic.rs @@ -161,10 +161,7 @@ pub async fn complete( .method(Method::POST) .uri(uri) .header("Anthropic-Version", "2023-06-01") - .header( - "Anthropic-Beta", - "tools-2024-04-04,prompt-caching-2024-07-31,max-tokens-3-5-sonnet-2024-07-15", - ) + .header("Anthropic-Beta", "prompt-caching-2024-07-31") .header("X-Api-Key", api_key) .header("Content-Type", "application/json");