We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a6c6af commit b19b1c7Copy full SHA for b19b1c7
google/genai/_api_client.py
@@ -1056,11 +1056,16 @@ def _build_request(
1056
_common.recursive_dict_update(
1057
request_dict, patched_http_options.extra_body
1058
)
1059
-
1060
- url = join_url_path(
1061
- base_url,
1062
- versioned_path,
1063
- )
+ url = base_url
+ if (
+ not self.custom_base_url
+ or (self.project and self.location)
+ or self.api_key
1064
+ ):
1065
+ url = join_url_path(
1066
+ base_url,
1067
+ versioned_path,
1068
+ )
1069
1070
if self.api_key and self.api_key.startswith('auth_tokens/'):
1071
raise EphemeralTokenAPIKeyError(
0 commit comments