Skip to content

Conversation

copybara-service[bot]
Copy link
Contributor

fix: Fix deepcopy for RubricGenerationConfig in RubricBasedMetric.

The GenerativeModel instance within RubricGenerationConfig cannot be deepcopied directly. This change introduces a helper function to safely deepcopy the configuration by temporarily setting the model attribute to None before deepcopying and restoring it afterwards.

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Sep 8, 2025
@copybara-service copybara-service bot force-pushed the copybara_804266957 branch 2 times, most recently from 720cea4 to b4fa4c3 Compare September 8, 2025 21:29
The `GenerativeModel` instance within `RubricGenerationConfig` cannot be deepcopied directly. This change introduces a helper function to safely deepcopy the configuration by temporarily setting the `model` attribute to `None` before deepcopying and restoring it afterwards.

PiperOrigin-RevId: 804605967
@copybara-service copybara-service bot merged commit e39f0bd into main Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vertex-ai Issues related to the googleapis/python-aiplatform API. google-contributor size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant