anthropic: Remove stable headers (#20595)

The tool and context length headers are now stable and no longer needed.

Release Notes:

- N/A
This commit is contained in:
David Soria Parra 2024-11-13 20:04:37 +00:00 committed by GitHub
parent b1cd9e4d24
commit a15f408f0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -161,10 +161,7 @@ pub async fn complete(
.method(Method::POST) .method(Method::POST)
.uri(uri) .uri(uri)
.header("Anthropic-Version", "2023-06-01") .header("Anthropic-Version", "2023-06-01")
.header( .header("Anthropic-Beta", "prompt-caching-2024-07-31")
"Anthropic-Beta",
"tools-2024-04-04,prompt-caching-2024-07-31,max-tokens-3-5-sonnet-2024-07-15",
)
.header("X-Api-Key", api_key) .header("X-Api-Key", api_key)
.header("Content-Type", "application/json"); .header("Content-Type", "application/json");