From 210d25fc33f358a92abc768749958b008f8df8fd Mon Sep 17 00:00:00 2001 From: Moshe Malawachh Date: Thu, 9 Jan 2025 15:49:47 +0100 Subject: [PATCH] fix local session naming clash --- libertai_agents/libertai_agents/agents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libertai_agents/libertai_agents/agents.py b/libertai_agents/libertai_agents/agents.py index 64f81ce..67edfab 100644 --- a/libertai_agents/libertai_agents/agents.py +++ b/libertai_agents/libertai_agents/agents.py @@ -112,8 +112,8 @@ async def generate_answer( messages, self.tools, system_prompt=system_prompt or self.system_prompt ) if session is None: - async with aiohttp.ClientSession() as session: - response = await self.__call_model(session, prompt) + async with aiohttp.ClientSession() as local_session: + response = await self.__call_model(local_session, prompt) else: response = await self.__call_model(session, prompt)