Skip to content

Commit

Permalink
Increase the token limit for anthropic (#7)
Browse files Browse the repository at this point in the history
* increase token limit
  • Loading branch information
vishalkrishnads authored Jul 31, 2024
1 parent 07ae17a commit 952cfe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
1 change: 1 addition & 0 deletions src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 952cfe7

Please sign in to comment.