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(rust): declare _CacheTestHandle.valkey_semantic in native stub

Yujong Leee350455a668f
diff --git a/litellm/rust_bridge/_native.pyi b/litellm/rust_bridge/_native.pyi
index 90d876b71e6..978e770b4be 100644
--- a/litellm/rust_bridge/_native.pyi
+++ b/litellm/rust_bridge/_native.pyi
@@ -169,6 +169,13 @@ class _CacheTestHandle:
@staticmethod
def azure_blob(account_url: str, container: str) -> _CacheTestHandle: ...
@staticmethod
+ def valkey_semantic(
+ url: str,
+ similarity_threshold: float,
+ index_name: str,
+ embedder: object,
+ ) -> _CacheTestHandle: ...
+ @staticmethod
def gcs(
bucket_name: str,
*,