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

fix: Catch more LLM action/styles hallucinations

Clémence Lesné7669aa524f5e
diff --git a/models/message.py b/models/message.py
index 401927b..d5c9f69 100644
--- a/models/message.py
+++ b/models/message.py
@@ -16,8 +16,8 @@ import json
_FUNC_NAME_SANITIZER_R = r"[^a-zA-Z0-9_-]"
-_MESSAGE_ACTION_R = r"action=([a-z_]*)( .*)?"
-_MESSAGE_STYLE_R = r"style=([a-z_]*)( .*)?"
+_MESSAGE_ACTION_R = r"action(?:=)?([a-z_]*)( .*)?"
+_MESSAGE_STYLE_R = r"style(?:=)?([a-z_]*)( .*)?"
class StyleEnum(str, Enum):