Skip to content

Commit

Permalink
anthropic: Remove stable headers (#20595)
Browse files Browse the repository at this point in the history
The tool and context length headers are now stable and no longer needed.

Release Notes:

- N/A
  • Loading branch information
dsp-ant authored Nov 13, 2024
1 parent b1cd9e4 commit a15f408
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/anthropic/src/anthropic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit a15f408

Please sign in to comment.