Skip to content

Commit

Permalink
fix(llamaindex-sdk): Fix issue causing client session to not close pr…
Browse files Browse the repository at this point in the history
…operly while closing SDK.
  • Loading branch information
anubhav756 committed Nov 19, 2024
1 parent bb038df commit e026882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/llamaindex/src/toolbox_llamaindex_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, url: str, session: Optional[ClientSession] = None):
Default: None
"""
self._url: str = url
self._should_close_session: bool = session != None
self._should_close_session: bool = session is None
self._session: ClientSession = session or ClientSession()

async def close(self) -> None:
Expand Down

0 comments on commit e026882

Please sign in to comment.