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(python-bridge): restore Qdrant dispatch after rebase

Yujong Lee6a06f69972e9
diff --git a/litellm-rust/crates/cache-qdrant-semantic/src/semantic.rs b/litellm-rust/crates/cache-qdrant-semantic/src/semantic.rs
index 8fa27d68d05..cc82118d280 100644
--- a/litellm-rust/crates/cache-qdrant-semantic/src/semantic.rs
+++ b/litellm-rust/crates/cache-qdrant-semantic/src/semantic.rs
@@ -124,14 +124,17 @@ impl<E: Embedder, C: CacheCodec> QdrantSemanticCache<E, C> {
}))
.map_err(|_| Error::InvalidEntry)?;
self.client
- .upsert_points(UpsertPointsBuilder::new(
- self.collection_name(),
- vec![PointStruct::new(
- Uuid::new_v4().to_string(),
- vector,
- payload,
- )],
- ).wait(true))
+ .upsert_points(
+ UpsertPointsBuilder::new(
+ self.collection_name(),
+ vec![PointStruct::new(
+ Uuid::new_v4().to_string(),
+ vector,
+ payload,
+ )],
+ )
+ .wait(true),
+ )
.await
.map_err(|_| Error::Unavailable)?;
Ok(())
diff --git a/litellm-rust/crates/cache-qdrant-semantic/tests/qdrant.rs b/litellm-rust/crates/cache-qdrant-semantic/tests/qdrant.rs
index 70cde4e0d5d..70ba666e782 100644
--- a/litellm-rust/crates/cache-qdrant-semantic/tests/qdrant.rs
+++ b/litellm-rust/crates/cache-qdrant-semantic/tests/qdrant.rs
@@ -384,7 +384,10 @@ async fn response_payloads_decode_and_invalid_entries_fail() {
server.insert_point(StoredPoint {
id: Some(PointId::from(key.len() as u64)),
vector: vec![1.0, 0.0],
- payload: payload.into_iter().map(|(key, value)| (key, json_to_qdrant(value))).collect(),
+ payload: payload
+ .into_iter()
+ .map(|(key, value)| (key, json_to_qdrant(value)))
+ .collect(),
});
}
assert_eq!(
diff --git a/litellm-rust/crates/cache-qdrant-semantic/tests/support/mod.rs b/litellm-rust/crates/cache-qdrant-semantic/tests/support/mod.rs
index 2a4cd45e007..5311a2473d5 100644
--- a/litellm-rust/crates/cache-qdrant-semantic/tests/support/mod.rs
+++ b/litellm-rust/crates/cache-qdrant-semantic/tests/support/mod.rs
@@ -10,8 +10,8 @@ use qdrant_client::qdrant::{
CollectionOperationResponse, CreateCollection, CreateFieldIndexCollection, Filter, PointId,
PointsOperationResponse, ScoredPoint, SearchPoints, SearchResponse, Value, Vector, Vectors,
collections_server::Collections,
- value::Kind,
points_server::{Points, PointsServer},
+ value::Kind,
};
use serde_json::Value as JsonValue;
use tokio::sync::oneshot;
diff --git a/litellm-rust/crates/python-bridge/src/cache/facade.rs b/litellm-rust/crates/python-bridge/src/cache/facade.rs
index f307d109fb1..db37491653c 100644
--- a/litellm-rust/crates/python-bridge/src/cache/facade.rs
+++ b/litellm-rust/crates/python-bridge/src/cache/facade.rs
@@ -290,9 +290,9 @@ impl FacadeGuard {
"redis_flush_size",
][..],
"qdrant_semantic" => &[
- "qdrant_api_base",
- "qdrant_api_key",
- "collection_name",
+ "qdrant_api_base",
+ "qdrant_api_key",
+ "collection_name",
"similarity_threshold",
"embedding_model",
"vector_size",