Skip to content

Commit 671b874

Browse files
fix: Fix test in image model
1 parent da8f392 commit 671b874

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_image_onnx_embeddings.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
}
2828

2929
ALL_IMAGE_MODEL_DESC = ImageEmbedding._list_supported_models()
30+
smallest_model = min(ALL_IMAGE_MODEL_DESC, key=lambda m: m.size_in_GB).model
3031

3132

3233
@pytest.mark.parametrize(
3334
"model_name",
3435
[
35-
min(ALL_IMAGE_MODEL_DESC, key=lambda m: m.size_in_GB).model
36-
if CANONICAL_VECTOR_VALUES
36+
smallest_model
37+
if smallest_model in CANONICAL_VECTOR_VALUES
3738
else "Qdrant/clip-ViT-B-32-vision"
3839
],
3940
)

0 commit comments

Comments
 (0)