Skip to content

Commit 4db4839

Browse files
authored
[PyPi Publish] Bump version to 0.2.5 in pyproject.toml (#156)
* Bump version to 0.2.5 in pyproject.toml * chore: case insensitive check (#157)
1 parent 96a2a90 commit 4db4839

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

fastembed/sparse/sparse_text_embedding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
for EMBEDDING_MODEL_TYPE in self.EMBEDDINGS_REGISTRY:
5050
supported_models = EMBEDDING_MODEL_TYPE.list_supported_models()
51-
if any(model_name == model["model"] for model in supported_models):
51+
if any(model_name.lower() == model["model"].lower() for model in supported_models):
5252
self.model = EMBEDDING_MODEL_TYPE(model_name, cache_dir, threads, **kwargs)
5353
return
5454

fastembed/text/text_embedding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(
5555

5656
for EMBEDDING_MODEL_TYPE in self.EMBEDDINGS_REGISTRY:
5757
supported_models = EMBEDDING_MODEL_TYPE.list_supported_models()
58-
if any(model_name == model["model"] for model in supported_models):
58+
if any(model_name.lower() == model["model"].lower() for model in supported_models):
5959
self.model = EMBEDDING_MODEL_TYPE(model_name, cache_dir, threads, **kwargs)
6060
return
6161

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "fastembed"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
description = "Fast, light, accurate library built for retrieval embedding generation"
55
authors = ["NirantK <[email protected]>"]
66
license = "Apache License"

0 commit comments

Comments
 (0)