diff --git a/src/whisper.cpp b/src/whisper.cpp index 5790f2892..1359fcd2a 100644 --- a/src/whisper.cpp +++ b/src/whisper.cpp @@ -7182,7 +7182,7 @@ int whisper_full_with_state( std::vector probs(n_logits); // Get the SOT logits, which aren't at position 0 if there was a prompt prefix - const std::vector sot_logits = state->logits;( + const std::vector sot_logits( state->logits.begin() + (size_t) sot_index * n_logits, state->logits.begin() + (size_t) (sot_index + 1) * n_logits);