fix: TTS available crashes on non-string tts_provider (#2034)

This commit is contained in:
Afonso Coutinho
2026-07-11 03:19:51 +01:00
committed by GitHub
parent 667f9e4cae
commit def3483032
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class TTSService:
if provider == "local":
kokoro = self._get_kokoro()
return kokoro is not None and kokoro.available
if provider.startswith("endpoint:"):
if isinstance(provider, str) and provider.startswith("endpoint:"):
return True # assume reachable; errors surface at synthesis time
return False