Skip to content

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]

fix: fix imports

Krrish Dholakia5aad9d2db786
diff --git a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_anthropic.py b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_anthropic.py
index bade93c2f11..b13b87bc67d 100644
--- a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_anthropic.py
+++ b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_anthropic.py
@@ -205,7 +205,9 @@ def get_vertex_client(
vertex_credentials: Optional[str],
) -> Tuple[Any, Optional[str]]:
args = locals()
- from litellm.llms.vertex_httpx import VertexLLM
+ from litellm.llms.vertex_ai_and_google_ai_studio.vertex_and_google_ai_studio_gemini import (
+ VertexLLM,
+ )
try:
from anthropic import AnthropicVertex
@@ -268,7 +270,9 @@ def completion(
from anthropic import AnthropicVertex
from litellm.llms.anthropic import AnthropicChatCompletion
- from litellm.llms.vertex_httpx import VertexLLM
+ from litellm.llms.vertex_ai_and_google_ai_studio.vertex_and_google_ai_studio_gemini import (
+ VertexLLM,
+ )
except:
raise VertexAIError(
status_code=400,
diff --git a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_partner_models.py b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_partner_models.py
index 3521ba06d45..f12d8489cfa 100644
--- a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_partner_models.py
+++ b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_partner_models.py
@@ -126,7 +126,9 @@ class VertexAIPartnerModels(BaseLLM):
from litellm.llms.databricks import DatabricksChatCompletion
from litellm.llms.openai import OpenAIChatCompletion
from litellm.llms.text_completion_codestral import CodestralTextCompletion
- from litellm.llms.vertex_httpx import VertexLLM
+ from litellm.llms.vertex_ai_and_google_ai_studio.vertex_and_google_ai_studio_gemini import (
+ VertexLLM,
+ )
except Exception:
raise VertexAIError(
diff --git a/litellm/tests/test_amazing_vertex_completion.py b/litellm/tests/test_amazing_vertex_completion.py
index 33f4df01b1d..13dad6de748 100644
--- a/litellm/tests/test_amazing_vertex_completion.py
+++ b/litellm/tests/test_amazing_vertex_completion.py
@@ -2065,7 +2065,9 @@ def test_prompt_factory_nested():
def test_get_token_url():
- from litellm.llms.vertex_httpx import VertexLLM
+ from litellm.llms.vertex_ai_and_google_ai_studio.vertex_and_google_ai_studio_gemini import (
+ VertexLLM,
+ )
vertex_llm = VertexLLM()
vertex_ai_project = "adroit-crow-413218"
diff --git a/litellm/utils.py b/litellm/utils.py
index 92b5d5db065..01212ab588a 100644
--- a/litellm/utils.py
+++ b/litellm/utils.py
@@ -4131,7 +4131,9 @@ def get_api_base(
_optional_params.vertex_location is not None
and _optional_params.vertex_project is not None
):
- from litellm.llms.vertex_ai_anthropic import create_vertex_anthropic_url
+ from litellm.llms.vertex_ai_and_google_ai_studio.vertex_ai_anthropic import (
+ create_vertex_anthropic_url,
+ )
if "claude" in model:
_api_base = create_vertex_anthropic_url(