Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/generation/streamers.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,11 @@ export class WhisperTextStreamer extends TextStreamer {
this.on_chunk_start?.(time);
}
this.waiting_for_timestamp = !this.waiting_for_timestamp; // Toggle
value = [[]]; // Skip timestamp

// NOTE: Timestamp tokens should not be printed. Although, since they
// aren't classified as "special tokens", we need to handle them here.
this.token_callback_function?.(tokens);
return;
}
}
return super.put(value);
Expand Down