Skip to content

fix(vertex): append request path for custom base_url#2300

Open
MukundaKatta wants to merge 2 commits intogoogleapis:mainfrom
MukundaKatta:codex/python-genai-custom-base-url-path
Open

fix(vertex): append request path for custom base_url#2300
MukundaKatta wants to merge 2 commits intogoogleapis:mainfrom
MukundaKatta:codex/python-genai-custom-base-url-path

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • append the versioned request path when Vertex AI uses a custom \ outside collection-scoped resources
  • preserve the existing collection-scoped custom-base-url behavior
  • update the request-builder regression test to assert the full Vertex generateContent path

Testing

  • python3 -m py_compile google/genai/_api_client.py google/genai/tests/client/test_client_requests.py
  • python3 -m pytest google/genai/tests/client/test_client_requests.py -k custom_base_url_no_env_vars

@Venkaiahbabuneelam Venkaiahbabuneelam self-assigned this Apr 21, 2026
@Venkaiahbabuneelam Venkaiahbabuneelam added the size:M Code changes between 10-40 lines label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M Code changes between 10-40 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants