The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(vertex_httpx.py): fix linting error
Krrish Dholakia641192e0494f
diff --git a/litellm/llms/vertex_httpx.py b/litellm/llms/vertex_httpx.pyindex 9995373f32e..954a30b8010 100644--- a/litellm/llms/vertex_httpx.py+++ b/litellm/llms/vertex_httpx.py@@ -13,6 +13,7 @@ from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Unionimport httpx # type: ignoreimport requests # type: ignore+from openai.types.image import Imageimport litellmimport litellm.litellm_core_utils@@ -1341,10 +1342,10 @@ class VertexLLM(BaseLLM):_json_response = response.json()_predictions = _json_response["predictions"]- _response_data: List[litellm.ImageObject] = []+ _response_data: List[Image] = []for _prediction in _predictions:_bytes_base64_encoded = _prediction["bytesBase64Encoded"]- image_object = litellm.ImageObject(b64_json=_bytes_base64_encoded)+ image_object = Image(b64_json=_bytes_base64_encoded)_response_data.append(image_object)model_response.data = _response_data@@ -1453,10 +1454,10 @@ class VertexLLM(BaseLLM):_json_response = response.json()_predictions = _json_response["predictions"]- _response_data: List[litellm.ImageObject] = []+ _response_data: List[Image] = []for _prediction in _predictions:_bytes_base64_encoded = _prediction["bytesBase64Encoded"]- image_object = litellm.ImageObject(b64_json=_bytes_base64_encoded)+ image_object = Image(b64_json=_bytes_base64_encoded)_response_data.append(image_object)model_response.data = _response_data