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é5fe3c4237444
diff --git a/app/helpers/call_utils.py b/app/helpers/call_utils.py
index 033d682..7c0fece 100644
--- a/app/helpers/call_utils.py
+++ b/app/helpers/call_utils.py
@@ -211,13 +211,11 @@ async def handle_automation_tts( # noqa: PLR0913
return
if store:
- await scheduler.spawn(
- _store_assistant_message(
- call=call,
- style=style,
- text=text,
- scheduler=scheduler,
- )
+ await _store_assistant_message(
+ call=call,
+ style=style,
+ text=text,
+ scheduler=scheduler,
)
@@ -274,13 +272,11 @@ async def handle_realtime_tts( # noqa: PLR0913
)
if store:
- await scheduler.spawn(
- _store_assistant_message(
- call=call,
- style=style,
- text=text,
- scheduler=scheduler,
- )
+ await _store_assistant_message(
+ call=call,
+ style=style,
+ text=text,
+ scheduler=scheduler,
)