Feat : better error handling in llm_provider

This commit is contained in:
martin legrand
2025-03-17 09:55:49 +01:00
parent 2aaf5756d5
commit f655682e0d
3 changed files with 39 additions and 17 deletions
+2 -1
View File
@@ -76,8 +76,9 @@ class Speech():
return parts[-1] if parts else path
def shorten_paragraph(self, sentence):
#TODO find a better way, we would like to have the TTS not be annoying, speak only useful informations
"""
Shorten paragraph like **explaination**: <long text> by keeping only the first sentence.
Find long paragraph like **explaination**: <long text> by keeping only the first sentence.
Args:
sentence (str): The sentence to shorten
Returns: