Skip to content

Commit a0d36bd

Browse files
author
codestory
committed
feat: enable 128k output beta feature for Anthropic API calls
1 parent 7e826a7 commit a0d36bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llm_client/src/clients/anthropic.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ impl AnthropicClient {
454454
// enables prompt caching: https://arc.net/l/quote/qtlllqgf
455455
.header(
456456
"anthropic-beta".to_owned(),
457-
"prompt-caching-2024-07-31,max-tokens-3-5-sonnet-2024-07-15,computer-use-2024-10-22".to_owned(),
457+
"prompt-caching-2024-07-31,max-tokens-3-5-sonnet-2024-07-15,computer-use-2024-10-22,output-128k-2025-02-19".to_owned(),
458458
)
459459
.json(&anthropic_request)
460460
.send()
@@ -727,7 +727,7 @@ impl LLMClient for AnthropicClient {
727727
// enables prompt caching: https://arc.net/l/quote/qtlllqgf
728728
.header(
729729
"anthropic-beta".to_owned(),
730-
"prompt-caching-2024-07-31,max-tokens-3-5-sonnet-2024-07-15,computer-use-2024-10-22".to_owned(),
730+
"prompt-caching-2024-07-31,max-tokens-3-5-sonnet-2024-07-15,computer-use-2024-10-22,output-128k-2025-02-19".to_owned(),
731731
)
732732
.json(&anthropic_request)
733733
.send()
@@ -867,7 +867,7 @@ impl LLMClient for AnthropicClient {
867867
)
868868
.header(
869869
"anthropic-beta".to_owned(),
870-
"max-tokens-3-5-sonnet-2024-07-15".to_owned(),
870+
"prompt-caching-2024-07-31,max-tokens-3-5-sonnet-2024-07-15,computer-use-2024-10-22,output-128k-2025-02-19".to_owned(),
871871
)
872872
.header("anthropic-version".to_owned(), "2023-06-01".to_owned())
873873
.header("content-type".to_owned(), "application/json".to_owned())

0 commit comments

Comments
 (0)