Skip to content

Commit 9eabe6c

Browse files
authored
Fix sample comment describing video/audio processing (google-gemini#212)
Comment now reads: "A video or audio file is converted to tokens at a fixed rate of tokens per second."
1 parent 0f32a5f commit 9eabe6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samples/count_tokens.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ async function tokensMultimodalVideoAudioFileApi() {
230230

231231
// Call `countTokens` to get the input token count
232232
// of the combined text and file (`totalTokens`).
233-
// An video or audio file's display or file size does not affect its token count.
233+
// A video or audio file is converted to tokens at a fixed rate of tokens
234+
// per second.
234235
// Optionally, you can call `countTokens` for the text and file separately.
235236
const countResult = await model.countTokens([prompt, videoPart]);
236237

0 commit comments

Comments
 (0)