mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix VertexAIException APIError
This commit is contained in:
parent
02676179ca
commit
53e6286622
1 changed files with 8 additions and 1 deletions
|
@ -9185,7 +9185,14 @@ def exception_type(
|
||||||
model=model,
|
model=model,
|
||||||
llm_provider="vertex_ai",
|
llm_provider="vertex_ai",
|
||||||
litellm_debug_info=extra_information,
|
litellm_debug_info=extra_information,
|
||||||
request=original_exception.request,
|
request=getattr(
|
||||||
|
original_exception,
|
||||||
|
"request",
|
||||||
|
httpx.Request(
|
||||||
|
method="POST",
|
||||||
|
url=" https://cloud.google.com/vertex-ai/",
|
||||||
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
elif custom_llm_provider == "palm" or custom_llm_provider == "gemini":
|
elif custom_llm_provider == "palm" or custom_llm_provider == "gemini":
|
||||||
if "503 Getting metadata" in error_str:
|
if "503 Getting metadata" in error_str:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue