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(vector-stores): import assert_never from typing_extensions for Python 3.10

mateo-berri6499ca349f1c
diff --git a/litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py b/litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py
index d5c893c4b20..ed125b915b4 100644
--- a/litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py
+++ b/litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py
@@ -7,7 +7,9 @@ It searches the vector store for relevant context and appends it to the messages
from collections.abc import Awaitable, Callable, Mapping, Sequence
from dataclasses import dataclass
-from typing import TYPE_CHECKING, Any, Final, Protocol, assert_never, cast
+from typing import TYPE_CHECKING, Any, Final, Protocol, cast
+
+from typing_extensions import assert_never
import litellm
import litellm.vector_stores