Skip to content

Commit

Permalink
Fix sample comment describing video/audio processing (#212)
Browse files Browse the repository at this point in the history
Comment now reads: "A video or audio file is converted to tokens at a fixed rate of tokens per second."
  • Loading branch information
hsubox76 authored Jul 22, 2024
1 parent 0f32a5f commit 9eabe6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/count_tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ async function tokensMultimodalVideoAudioFileApi() {

// Call `countTokens` to get the input token count
// of the combined text and file (`totalTokens`).
// 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
// per second.
// Optionally, you can call `countTokens` for the text and file separately.
const countResult = await model.countTokens([prompt, videoPart]);

Expand Down

0 comments on commit 9eabe6c

Please sign in to comment.