Skip to content

Commit

Permalink
fix(countTokens): correctly set beta header
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie authored and stainless-app[bot] committed Nov 1, 2024
1 parent affdd31 commit 3002c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/beta/messages/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class Messages extends APIResource {
body,
...options,
headers: {
...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined),
'anthropic-beta': [...(betas ?? []), 'token-counting-2024-11-01'].toString(),
...options?.headers,
},
});
Expand Down

0 comments on commit 3002c2e

Please sign in to comment.