Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
perf: Disable token count for each OpenAI message
Clémence Lesnéc523056691f7
diff --git a/helpers/llm_worker.py b/helpers/llm_worker.pyindex cd47ca2..19ea096 100644--- a/helpers/llm_worker.py+++ b/helpers/llm_worker.py@@ -53,11 +53,10 @@ import jsonimport tiktoken-# Instrument OpenAIenviron["TRACELOOP_TRACE_CONTENT"] = str(True) # Instrumentation logs prompts, completions, and embeddings to span attributes, set to False to lower monitoring costs or to avoid logging PII-OpenAIInstrumentor(enrich_token_usage=True).instrument()+OpenAIInstrumentor().instrument() # Instrument OpenAI# tiktoken cacheenviron["TIKTOKEN_CACHE_DIR"] = resources_dir("tiktoken")