-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update count_tokens samples #208
Conversation
88afa40
to
f72b3b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment but approved so we can just merge once it's resolved
samples/count_tokens.js
Outdated
`${mediaPath}/samplesmall.mp3`, | ||
{ mimeType: "audio/mp3" }, | ||
); | ||
function waitForProcessing(fileName) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just remove this empty function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed, good catch.
Update count_tokens samples to better match python: https://github.com/google-gemini/generative-ai-python/blob/main/samples/count_tokens.py