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

chore: Removing dead code

Clémence Lesné296eefc45d1a
diff --git a/helpers/config_models/prompts.py b/helpers/config_models/prompts.py
index e1e9435..de8a620 100644
--- a/helpers/config_models/prompts.py
+++ b/helpers/config_models/prompts.py
@@ -399,7 +399,7 @@ class LlmModel(BaseSettings):
return build_logger(__name__)
-class TtsModel(BaseSettings, env_prefix="prompts_tts_"):
+class TtsModel(BaseSettings):
tts_lang: str = "en-US"
calltransfer_failure_tpl: str = (
"It seems I can't connect you with an agent at the moment, but the next available agent will call you back as soon as possible."
@@ -529,7 +529,7 @@ class TtsModel(BaseSettings, env_prefix="prompts_tts_"):
return build_logger(__name__)
-class PromptsModel(BaseSettings, env_prefix="prompts_"):
+class PromptsModel(BaseSettings):
llm: LlmModel = LlmModel() # Object is fully defined by default
sounds: SoundModel = SoundModel() # Object is fully defined by default
tts: TtsModel = TtsModel() # Object is fully defined by default
diff --git a/helpers/config_models/workflow.py b/helpers/config_models/workflow.py
index 56ec9fb..204231f 100644
--- a/helpers/config_models/workflow.py
+++ b/helpers/config_models/workflow.py
@@ -68,7 +68,7 @@ class LanguageModel(BaseSettings):
)
-class WorkflowModel(BaseSettings, env_prefix="workflow_"):
+class WorkflowModel(BaseSettings):
agent_phone_number: PhoneNumber
bot_company: str
bot_name: str