mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 13:19:33 +08:00
fix test
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user