Skip to content

fix(files.upload): replace the base url with config.HTTPOptions.BaseURL#502

Open
helloworldcoding wants to merge 3 commits intogoogleapis:mainfrom
helloworldcoding:main
Open

fix(files.upload): replace the base url with config.HTTPOptions.BaseURL#502
helloworldcoding wants to merge 3 commits intogoogleapis:mainfrom
helloworldcoding:main

Conversation

@helloworldcoding
Copy link
Copy Markdown

sometimes we need set the base_url of all the request. while the
uploadURL := resp.SDKHTTPResponse.Headers.Get("X-Goog-Upload-Url") always start with
"https://generativelanguage.googleapis.com/".

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Sep 9, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Sivasankaran25 Sivasankaran25 self-assigned this Sep 26, 2025
@Sivasankaran25
Copy link
Copy Markdown
Collaborator

@qiaodev qiaodev changed the title replace the base url with config.HTTPOptions.BaseURL fix(files.upload): replace the base url with config.HTTPOptions.BaseURL Oct 6, 2025
@Sivasankaran25 Sivasankaran25 added the api:gemini-api Issues related to Gemini API label Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api:gemini-api Issues related to Gemini API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants