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 15:04:37 -05:00
committed by GitHub
parent b1cd9e4d24
commit a15f408f0c
+1 -4
View File
@@ -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");