From 67564201ec4ec383ee5b21d6ac8750ee395fa8fa Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 25 Jun 2023 14:34:10 +0300 Subject: [PATCH] go : fix "cb" -> "callNewSegment" --- bindings/go/pkg/whisper/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/go/pkg/whisper/context.go b/bindings/go/pkg/whisper/context.go index e193832e..adb67466 100644 --- a/bindings/go/pkg/whisper/context.go +++ b/bindings/go/pkg/whisper/context.go @@ -161,7 +161,7 @@ func (context *context) Process( return ErrInternalAppError } // If the callback is defined then we force on single_segment mode - if cb != nil { + if callNewSegment != nil { context.params.SetSingleSegment(true) }