Skip to content

Commit 5e94129

Browse files
polarmoonMing
andauthored
go : NewContext now returns a clean context (#537)
Co-authored-by: Ming <ming@localhost>
1 parent 72af0f5 commit 5e94129

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bindings/go/pkg/whisper/model.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func (model *model) NewContext() (Context, error) {
9494
params.SetPrintRealtime(false)
9595
params.SetPrintTimestamps(false)
9696
params.SetThreads(runtime.NumCPU())
97+
params.SetNoContext(true)
9798

9899
// Return new context
99100
return newContext(model, params)

0 commit comments

Comments
 (0)