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

breaking: Voice ID does not need to be exposed to the API

Clémence Lesné13331b8c2984
diff --git a/models/call.py b/models/call.py
index 31945b6..c8f9764 100644
--- a/models/call.py
+++ b/models/call.py
@@ -34,7 +34,6 @@ class CallGetModel(BaseModel):
next: Optional[NextModel] = None
reminders: list[ReminderModel] = []
synthesis: Optional[SynthesisModel] = None
- voice_id: Optional[str] = None
@computed_field
@property
@@ -85,6 +84,7 @@ class CallStateModel(CallGetModel, extra="ignore"):
# Editable fields
lang_short_code: Optional[str] = None
recognition_retry: int = 0
+ voice_id: Optional[str] = None
@computed_field
@property