Skip to content

Conversation

@neutralino1
Copy link
Collaborator

Description

  • Fixes WB-30014

This PR addressed the bug reported in #5844. The google.genai module is not being autopatched because it is a namespaced module.
This PR special-cases this module.

Testing

How was this PR tested?

  • Unit testing

@neutralino1 neutralino1 self-assigned this Dec 30, 2025
@neutralino1 neutralino1 requested a review from a team as a code owner December 30, 2025 00:00
@neutralino1 neutralino1 added the merge-post-freeze-12-25 PRs to merge after December '25 freeze ends. label Dec 30, 2025
@wandbot-3000
Copy link

wandbot-3000 bot commented Dec 30, 2025

@github-actions
Copy link
Contributor

❌ Documentation Reference Check Failed

No documentation reference found in the PR description. Please add either:

This check is required for all PRs except those that start with "chore(weave)" or explicitly state "docs are not required". Please update your PR description and this check will run again automatically.

Comment on lines +319 to +322
if fullname.startswith("google.genai"):
root_module = "google.genai"
else:
root_module = fullname.split(".")[0]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ugly, any better ideas?

@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
weave/integrations/patch.py 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@andrewtruong
Copy link
Collaborator

@neutralino1 this fix works because you're using google.genai instead of google.generativeai, not because of the special casing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-post-freeze-12-25 PRs to merge after December '25 freeze ends.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants