-
Notifications
You must be signed in to change notification settings - Fork 141
fix(weave): Special-casing google.genai module patching #5879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=6afccb63dc5d7b6fa5e556b1f77e0f39d62451ab |
|
❌ 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. |
| if fullname.startswith("google.genai"): | ||
| root_module = "google.genai" | ||
| else: | ||
| root_module = fullname.split(".")[0] |
There was a problem hiding this comment.
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 Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
@neutralino1 this fix works because you're using |
Description
This PR addressed the bug reported in #5844. The
google.genaimodule is not being autopatched because it is a namespaced module.This PR special-cases this module.
Testing
How was this PR tested?