From 952cfe7936de841cc9a1d7401e79a1c4dfdc7691 Mon Sep 17 00:00:00 2001 From: Vishal <321vishalds@gmail.com> Date: Wed, 31 Jul 2024 21:36:58 +0530 Subject: [PATCH] Increase the token limit for anthropic (#7) * increase token limit --- scripts/screenshot.js | 2 +- src/handlers/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/screenshot.js b/scripts/screenshot.js index e174ce8..d7a0fd6 100644 --- a/scripts/screenshot.js +++ b/scripts/screenshot.js @@ -5,7 +5,7 @@ const puppeteer = require('puppeteer'); (async () => { - const browser = await puppeteer.launch({executablePath: '/home/vishalds/.cache/puppeteer/chrome/linux-126.0.6478.126/chrome-linux64/chrome'}); + const browser = await puppeteer.launch({executablePath: '/home/vishalds/.cache/puppeteer/chrome/linux-126.0.6478.182/chrome-linux64/chrome'}); const page = await browser.newPage(); await page.goto('file://' + process.argv[2]); 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);