mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
When using Model Armor guardrail with explicit project_id in config, the project_id was being overwritten to None due to incorrect initialization order between ModelArmorGuardrail and VertexBase parent class. This fix ensures that user-provided project_id is preserved by initializing parent classes before setting instance attributes. Fixes #12757 |
||
|---|---|---|
| .. | ||
| guardrail_hooks | ||
| test_guardrail_endpoints.py | ||
| test_guardrail_registry.py | ||
| test_init_guardrails.py | ||