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

dev: Enhance debug logging

Clémence Lesnéc9a167916fde
diff --git a/main.py b/main.py
index 5bb4a81..76e80f1 100644
--- a/main.py
+++ b/main.py
@@ -596,6 +596,9 @@ async def gpt_chat(call: CallModel) -> ActionModel:
content = res.choices[0].message.content
tool_calls = res.choices[0].message.tool_calls
+ _logger.debug(f"Chat response: {content}")
+ _logger.debug(f"Tool calls: {tool_calls}")
+
intent = IndentAction.CONTINUE
models = []
if tool_calls: