Skip to content

Commit

Permalink
fix: Do not pass None values to session.get() (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
duwenxin99 committed Dec 13, 2023
1 parent 04be5ba commit 5d9cbbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions langchain_tools_demo/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async def get_session():
async def get_request(url: str, params: dict) -> aiohttp.ClientResponse:
"""Helper method to make backend requests"""
session = await get_session()
params = {key: value for key, value in params.items() if value is not None}
if "http://" in url:
response = await session.get(
url,
Expand Down

0 comments on commit 5d9cbbc

Please sign in to comment.