Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Model sometimes add style and actions to synthesises
Clémence Lesnéd855f76c328e
diff --git a/helpers/call_events.py b/helpers/call_events.pyindex 7048678..d71bba5 100644--- a/helpers/call_events.py+++ b/helpers/call_events.py@@ -412,6 +412,10 @@ async def _post_call_synthesis(call: CallStateModel) -> None:),)+ # Delete action and style from the message as they are in the history and LLM hallucinates them+ _, short = extract_message_style(remove_message_action(short or ""))+ _, long = extract_message_style(remove_message_action(long or ""))+if not short or not long:_logger.warning("Error generating synthesis")return