mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-24 00:52:24 +00:00
test(python-bridge): initialize the interpreter in the embedder seed test
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
c31fa2ae7a
commit
69b7224aef
1 changed files with 2 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue