Fix : TTS crash + perf improvement + router error fix

This commit is contained in:
martin legrand
2025-03-03 14:59:02 +01:00
parent 39bf625d6b
commit d2154d5769
7 changed files with 47 additions and 18 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class AgentRouter:
return result
def select_agent(self, text: str) -> Agent:
if text is None:
if len(self.agents) == 0 or len(self.labels) == 0:
return self.agents[0]
result = self.classify_text(text)
for agent in self.agents: