Fix Whisper model selection caching

This commit is contained in:
pumpkinperson996
2026-07-20 18:46:45 -05:00
parent 6d67e5a76a
commit 456ee6037a
3 changed files with 107 additions and 9 deletions
+4 -1
View File
@@ -262,7 +262,10 @@ class NoteGenerator:
raise Exception(f"不支持的转写器:{self.transcriber_type}")
logger.info(f"使用转写器:{self.transcriber_type}")
return get_transcriber(transcriber_type=self.transcriber_type)
return get_transcriber(
transcriber_type=self.transcriber_type,
model_size=self.model_size,
)
def _get_gpt(self, model_name: Optional[str], provider_id: Optional[str]) -> GPT:
"""