Skip to content

Commit

Permalink
fix(requestor): make params None if it's empty dict to prevent replac…
Browse files Browse the repository at this point in the history
…ement (httpx #3433)

httpx issue: When passing params={}, always strictly update rather than merge with an existing querystring.

PR: encode/httpx#3364
Issue: encode/httpx#3433
  • Loading branch information
atomiechen committed Dec 17, 2024
1 parent d1a0415 commit 34fabc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handyllm/requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def _call_raw(self) -> requests.Response:
data=self.data,
json=self.json_data,
files=self.files,
params=self.params,
params=self.params or None,
stream=self._stream,
timeout=self.timeout,
)
Expand Down Expand Up @@ -367,7 +367,7 @@ async def _acall_raw(self):
data=self.data,
json=self.json_data,
files=self.files,
params=self.params,
params=self.params or None,
timeout=self.timeout,
)
response = await self._async_client.send(
Expand Down

0 comments on commit 34fabc6

Please sign in to comment.