Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: New claim hallucinations
Clémence Lesné22a25bfe774b
diff --git a/app/helpers/llm_tools.py b/app/helpers/llm_tools.pyindex 8cfd0a1..9629184 100644--- a/app/helpers/llm_tools.py+++ b/app/helpers/llm_tools.py@@ -105,8 +105,8 @@ class DefaultPlugin(AbstractPlugin):content="",persona=MessagePersonaEnum.HUMAN,),- # Reinsert the last two messages- self.call.messages[-2],+ # Reinsert the last message, using more will add the user message asking to create the new claim and the assistant can loop on it sometimes+ self.call.messages[-1],],))