Skip to content

Commit

Permalink
fix local session naming clash
Browse files Browse the repository at this point in the history
  • Loading branch information
moshemalawach committed Jan 9, 2025
1 parent b86fd33 commit 5bef33a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libertai_agents/libertai_agents/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,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)

Expand Down

0 comments on commit 5bef33a

Please sign in to comment.