Skip to content

Commit

Permalink
feat: enable anthropic beta for 8k tokens on Claude 3.5 Sonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Jul 16, 2024
1 parent b9d8c12 commit abd6333
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ai/OpenAIRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ async function makeAnthropicRequest(
"Content-Type": "application/json",
"x-api-key": apiKey,
"anthropic-version": "2023-06-01",
"anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15"
},
body: JSON.stringify({
model: model.name,
Expand Down

0 comments on commit abd6333

Please sign in to comment.