From 5ba8692deed57a5fd1087d361bacbb58797f2f0a Mon Sep 17 00:00:00 2001 From: vishalkrishnads <321vishalds@gmail.com> Date: Wed, 31 Jul 2024 21:27:55 +0530 Subject: [PATCH] increase token limit --- src/handlers/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index 4d81915..078ad1b 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -33,6 +33,7 @@ pub async fn proxy_anthropic( let anthropic_req = app_state.client.post("https://api.anthropic.com/v1/messages") .header("x-api-key", bearer_token) .header("anthropic-version", "2023-06-01") + .header("anthropic-beta", "max-tokens-3-5-sonnet-2024-07-15") .header("content-type", "application/json") .body(payload);