From c1966b327d14a44b4b46aaacdfa9140d51670fa2 Mon Sep 17 00:00:00 2001 From: Pancake <13051345080@163.com> Date: Mon, 29 Dec 2025 15:57:05 +0800 Subject: [PATCH] fix test --- src/api/routers/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routers/system.py b/src/api/routers/system.py index 76bbb7ffc..1eaad51e4 100644 --- a/src/api/routers/system.py +++ b/src/api/routers/system.py @@ -174,7 +174,7 @@ async def test_embeddings_connection(): response_time = (time.time() - start_time) * 1000 - if embeddings and len(embeddings) > 0 and len(embeddings[0]) > 0: + if embeddings is not None and len(embeddings) > 0 and len(embeddings[0]) > 0: return TestResponse( success=True, message="Embeddings connection successful",