go : add SetInitialPrompt method to bindings (#1753)

This commit is contained in:
Boris Bliznioukov
2024-01-12 13:44:50 +02:00
committed by GitHub
parent fbcb52d3cd
commit 5cb345f5e9
3 changed files with 23 additions and 11 deletions
+5
View File
@@ -130,6 +130,11 @@ func (context *context) SetAudioCtx(n uint) {
context.params.SetAudioCtx(int(n))
}
// Set initial prompt
func (context *context) SetInitialPrompt(prompt string) {
context.params.SetInitialPrompt(prompt)
}
// ResetTimings resets the mode timings. Should be called before processing
func (context *context) ResetTimings() {
context.model.ctx.Whisper_reset_timings()