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

perf: Fine-tune max tokens for lower latency conversation

Clémence Lesné30ff57982019
diff --git a/main.py b/main.py
index 02d80d1..69d6dbd 100644
--- a/main.py
+++ b/main.py
@@ -1020,7 +1020,7 @@ async def llm_chat(
tool_calls = {}
try:
async for delta in completion_stream(
- max_tokens=400,
+ max_tokens=350,
messages=messages,
tools=tools,
):