Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix api/sts #154

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix api/sts #154

wants to merge 2 commits into from

Conversation

jstrot
Copy link

@jstrot jstrot commented May 29, 2024

The sts API seems to expect an old syntax of the do_tts function which returns only a result instead of a tuple.
With the fixed syntax, I can successfully use the api/sts endpoint.

Also including a change to do_whisper to raise a NotImplementedError(model) when the model is not recognized instead of erroring out due to a undefined whisper_model variable which looks like a bug instead of an invalid input.

jstrot added 2 commits May 29, 2024 02:55
Without this, there will be a Python error about the `whisper_model`
variable not being defined which may cause confusion or may look like a
bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant