Skip to content

Commit 82a5a5c

Browse files
Update genai/count_tokens/count_tokens_with_txt.py
Co-authored-by: Sampath Kumar <[email protected]>
1 parent 0623b93 commit 82a5a5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

genai/count_tokens/count_tokens_with_txt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def count_tokens() -> int:
2626
print(response)
2727

2828
# Example output:
29-
# total_tokens=10 cached_content_token_count=None
29+
# total_tokens=10
30+
# cached_content_token_count=None
3031

3132
# [END googlegenaisdk_count_tokens_with_txt]
3233
return response.total_tokens

0 commit comments

Comments
 (0)