mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-09-05 15:46:48 +08:00
Fix Whisper model selection caching
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user