Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
chore: Dead code
Clémence Lesné160538fd4f4f
diff --git a/helpers/call_utils.py b/helpers/call_utils.pyindex 0c4892f..3c77fda 100644--- a/helpers/call_utils.py+++ b/helpers/call_utils.py@@ -164,18 +164,13 @@ async def handle_play(# Store text in call messagesif store:- if (- call.messages and call.messages[-1].persona == MessagePersonaEnum.ASSISTANT- ): # If the last message was from the assistant, append to it- call.messages[-1].content += f" {text}"- else: # Otherwise, create a new message- call.messages.append(- MessageModel(- content=text,- persona=MessagePersonaEnum.ASSISTANT,- style=style,- )+ call.messages.append(+ MessageModel(+ content=text,+ persona=MessagePersonaEnum.ASSISTANT,+ style=style,)+ )# Split text in chunks of max 400 characters, separated by sentencechunks = []