Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Use local time zone in system prompts
Clémence Lesné114a183e7ad1
diff --git a/helpers/config_models/prompts.py b/helpers/config_models/prompts.pyindex e62242e..2e4ce9e 100644--- a/helpers/config_models/prompts.py+++ b/helpers/config_models/prompts.py@@ -350,10 +350,8 @@ class LlmModel(BaseModel):bot_company=call.initiate.bot_company,bot_name=call.initiate.bot_name,bot_phone_number=CONFIG.communication_services.phone_number,- date=datetime.now(UTC)- .astimezone()- .strftime(- "%Y-%m-%d %H:%M"+ date=datetime.now(call.tz()).strftime(+ "%Y-%m-%d %H:%M (%Z)"), # Don't include seconds to enhance cache during unit tests. Example: "2024-02-01 18:58".phone_number=call.initiate.phone_number,)