Skip to content

Commit

Permalink
fix: Fix closed connection issue on reset button (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
duwenxin99 committed Jan 17, 2024
1 parent 56a645c commit 21607ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions langchain_tools_demo/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ async def handle_error_response(response):
async def create_client_session() -> aiohttp.ClientSession:
return aiohttp.ClientSession(
connector=await get_connector(),
connector_owner=False, # Prevents connector being closed when closing session
headers=get_header(),
raise_for_status=handle_error_response,
)
Expand Down

0 comments on commit 21607ec

Please sign in to comment.