Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

chore: Remove dead code

Clémence Lesné1e73921797bf
diff --git a/helpers/translation.py b/helpers/translation.py
index 36beaa5..daa96f9 100644
--- a/helpers/translation.py
+++ b/helpers/translation.py
@@ -40,7 +40,7 @@ async def translate_text(
cache_key = f"{__name__}:translate_text:{text}:{source_lang}:{target_lang}"
cached = await _cache.aget(cache_key)
if cached:
- return cached.decode("utf-8")
+ return cached.decode()
# Try live
translation: Optional[str] = None