fix(common_utils.py): handle $id in response schema when calling vert… (#8991)

* fix(common_utils.py): handle $id in response schema when calling vertex ai

Fixes issue where `$id` present in response_schema was not accepted by vertex ai

* test(test_vertex.py): add unit test to ensure $id stripped out of vertex schema
This commit is contained in:
Krish Dholakia 2025-03-04 21:19:50 -08:00 committed by GitHub
parent 252c10ad08
commit ce2d7bf9e6
3 changed files with 8 additions and 0 deletions

View file

@ -7059,6 +7059,9 @@ async def delete_model(model_info: ModelInfoDelete):
)
except Exception as e:
verbose_proxy_logger.exception(
f"Failed to delete model. Due to error - {str(e)}"
)
if isinstance(e, HTTPException):
raise ProxyException(
message=getattr(e, "detail", f"Authentication Error({str(e)})"),