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
test(python-bridge): initialize the interpreter in the embedder seed test
Yujong Lee69b7224aef7e
diff --git a/litellm-rust/crates/python-bridge/src/cache/embedder.rs b/litellm-rust/crates/python-bridge/src/cache/embedder.rsindex 10ccf396510..9398e5a862b 100644--- a/litellm-rust/crates/python-bridge/src/cache/embedder.rs+++ b/litellm-rust/crates/python-bridge/src/cache/embedder.rs@@ -140,10 +140,8 @@ mod tests {#[tokio::test]async fn async_embed_returns_the_seeded_vector_or_unavailable() {- let object = Python::attach(|py| {- Python::initialize();- py.None()- });+ Python::initialize();+ let object = Python::attach(|py| py.None());let embedder = PythonEmbedder::new(object);let scoped_embedder = embedder.clone();let scoped = with_prepared_embedding(Ok(vec![0.25]), async move {