Skip to content

Commit

Permalink
Remove internal-only property from countTokens sample (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Jul 15, 2024
1 parent d85f0f5 commit 0f32a5f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions samples/count_tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ async function tokensTextOnly() {
);

console.log(countResult.totalTokens); // 11
console.log(countResult.contentTokens[0]);
// { partTokens: [ 10 ], roleTokens: 1 }

const generateResult = await model.generateContent(
"The quick brown fox jumps over the lazy dog.",
Expand Down

0 comments on commit 0f32a5f

Please sign in to comment.