We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f32a5f commit 9eabe6cCopy full SHA for 9eabe6c
samples/count_tokens.js
@@ -230,7 +230,8 @@ async function tokensMultimodalVideoAudioFileApi() {
230
231
// Call `countTokens` to get the input token count
232
// of the combined text and file (`totalTokens`).
233
- // An video or audio file's display or file size does not affect its token count.
+ // A video or audio file is converted to tokens at a fixed rate of tokens
234
+ // per second.
235
// Optionally, you can call `countTokens` for the text and file separately.
236
const countResult = await model.countTokens([prompt, videoPart]);
237
0 commit comments