We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
default_query
1 parent d5d0011 commit 271899dCopy full SHA for 271899d
1 file changed
src/finch/_base_client.py
@@ -457,7 +457,7 @@ def _build_request(
457
raise RuntimeError(f"Unexpected JSON data type, {type(json_data)}, cannot merge with `extra_body`")
458
459
headers = self._build_headers(options)
460
- params = _merge_mappings(self._custom_query, options.params)
+ params = _merge_mappings(self.default_query, options.params)
461
content_type = headers.get("Content-Type")
462
463
# If the given Content-Type header is multipart/form-data then it
@@ -593,6 +593,12 @@ def default_headers(self) -> dict[str, str | Omit]:
593
**self._custom_headers,
594
}
595
596
+ @property
597
+ def default_query(self) -> dict[str, object]:
598
+ return {
599
+ **self._custom_query,
600
+ }
601
+
602
def _validate_headers(
603
self,
604
headers: Headers, # noqa: ARG002
0 commit comments