We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aca7dcf commit 593e69fCopy full SHA for 593e69f
google/genai/_interactions/_base_client.py
@@ -550,6 +550,10 @@ def _build_request(
550
files = cast(HttpxRequestFiles, ForceMultipartDict())
551
552
prepared_url = self._prepare_url(options.url)
553
+ # preserve hard-coded query params from the url
554
+ if params and prepared_url.query:
555
+ params = {**dict(prepared_url.params.items()), **params}
556
+ prepared_url = prepared_url.copy_with(raw_path=prepared_url.raw_path.split(b"?", 1)[0])
557
if "_" in prepared_url.host:
558
# work around https://github.com/encode/httpx/discussions/2880
559
kwargs["extensions"] = {"sni_hostname": prepared_url.host.replace("_", "-")}
0 commit comments