Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: App crashes when LLM completion fails
Clémence Lesné92fc21148842
diff --git a/main.py b/main.pyindex 7a56c79..a9f9003 100644--- a/main.py+++ b/main.py@@ -492,6 +492,7 @@ async def gpt_completion(system: LLMPrompt, call: CallModel) -> str:]_logger.debug(f"Messages: {messages}")+ content = Nonetry:res = await oai_gpt.chat.completions.create(max_tokens=1000, # Arbitrary limit