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:
parent
b1cd9e4d24
commit
a15f408f0c
1 changed files with 1 additions and 4 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue