Skip to content

Commit 34fabc6

Browse files
committed
fix(requestor): make params None if it's empty dict to prevent replacement (httpx #3433)
httpx issue: When passing params={}, always strictly update rather than merge with an existing querystring. PR: encode/httpx#3364 Issue: https://github.com/encode/httpx/issues/3433
1 parent d1a0415 commit 34fabc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/handyllm/requestor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def _call_raw(self) -> requests.Response:
251251
data=self.data,
252252
json=self.json_data,
253253
files=self.files,
254-
params=self.params,
254+
params=self.params or None,
255255
stream=self._stream,
256256
timeout=self.timeout,
257257
)
@@ -367,7 +367,7 @@ async def _acall_raw(self):
367367
data=self.data,
368368
json=self.json_data,
369369
files=self.files,
370-
params=self.params,
370+
params=self.params or None,
371371
timeout=self.timeout,
372372
)
373373
response = await self._async_client.send(

0 commit comments

Comments
 (0)