stream : "-kc" now enables context keeping from previous segment (#90)

By default, the context keeping is disabled
This commit is contained in:
Georgi Gerganov
2022-11-22 18:20:05 +02:00
parent 63ae03b8e0
commit 385236d1d3
3 changed files with 17 additions and 13 deletions

View File

@@ -208,7 +208,8 @@ extern "C" {
bool speed_up; // speed-up the audio by 2x using Phase Vocoder
int audio_ctx; // overwrite the audio context size (0 = use default)
// std::vector<whisper_token>: tokens to provide the whisper model as initial prompt
// tokens to provide the whisper model as initial prompt
// these are prepended to any existing text context from a previous call
const whisper_token * prompt_tokens;
int prompt_n_tokens;