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

doc: Enhance dev doc

Clémence Lesné40caf9e2dba4
diff --git a/helpers/http.py b/helpers/http.py
index 17ad64c..bb6c606 100644
--- a/helpers/http.py
+++ b/helpers/http.py
@@ -22,6 +22,7 @@ async def aiohttp_session() -> ClientSession:
global _session
if not _session:
_session = ClientSession(
+ # Same config as default in the SDK
auto_decompress=False,
cookie_jar=await _aiohttp_cookie_jar(),
trust_env=True,
@@ -33,7 +34,7 @@ async def azure_transport() -> AioHttpTransport:
global _transport
if not _transport:
_transport = AioHttpTransport(
- session_owner=False,
+ session_owner=False, # Restrict the SDK to close the client after usage
session=await aiohttp_session(),
)
return _transport