Open thiswillbeyourgithub opened 2 weeks ago
I agree with the things you've pointed out. Let me think of the best way to go about implementing this. Thanks for creating the issue!
Edit: I'll likely add a mode where only the downloaded models can be used.
Hi,
I noticed that I'm confused.
As the owner of the server that can control the config and environment variables, if I set
WHISPER__MODEL=tiny
because I have a very small server, then I expect that's the model my server will use. But what seems to be happening is that if a user sends a request withmodel=large-v3
then my server would start downloading and loading the new model!I think this can be useful in some situations but I think it should be opt in (= disabled by default).
Here are my most compelling reasons:
My suggested solution is to add an environment variable
HONOR_REQUEST_MODEL
that defaults to False but if True would do what's currently implemented.Other solutions could be:
What do you think? Also, the env variable should instead be "WHISPER__DEFAULT_MODEL" don't you think?