Closed codesoda closed 10 months ago
@tazz4843 p.s. Did you mean to make the WhisperContextParameters
have a fluent API so you can chain calls (even though it only has 1 method) where as the WhisperContext
(with more methods) is more flat and you have to call methods on the original object each time.
I've been meaning to convert the FullParams API to be more friendly but haven't gotten around to it just yet.
I found 2 more issues
WhisperGrammar
andWhisperGrammarElementType
weren't exposed bylib.rs
so you couldn't make an object to pass toctx.set_grammar(Option<&[WhisperGrammarElement]>)
WhisperContextParameters
to pass toWhisperContext.new_with_x
since you'd get a borrow checker issue as soon as you tried to callctx_params.use_gpu(true)
because it was moving the object not borrowing.