From 5e94129cb2df42b0c8a05b415fab62c09bec517f Mon Sep 17 00:00:00 2001 From: polarmoon <90010972+polarmoon@users.noreply.github.com> Date: Sun, 5 Mar 2023 10:50:25 -0800 Subject: [PATCH] go : NewContext now returns a clean context (#537) Co-authored-by: Ming --- bindings/go/pkg/whisper/model.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/go/pkg/whisper/model.go b/bindings/go/pkg/whisper/model.go index 94c2197..68a1502 100644 --- a/bindings/go/pkg/whisper/model.go +++ b/bindings/go/pkg/whisper/model.go @@ -94,6 +94,7 @@ func (model *model) NewContext() (Context, error) { params.SetPrintRealtime(false) params.SetPrintTimestamps(false) params.SetThreads(runtime.NumCPU()) + params.SetNoContext(true) // Return new context return newContext(model, params)