Skip to content

Commit 21390d6

Browse files
committed
fix(cli): remove excessive finally that may cause embedding function bugs.
1 parent 7865cf3 commit 21390d6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ github = "https://github.com/Davidyz/VectorCode"
2323
documentation = "https://github.com/Davidyz/VectorCode/blob/main/docs/cli.md"
2424

2525
[project.optional-dependencies]
26-
intel = ['optimum[openvino]']
26+
intel = ['optimum[openvino]', 'openvino']
2727

2828
[project.scripts]
2929
vectorcode = "vectorcode.main:main"

src/vectorcode/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def get_embedding_function(configs: Config) -> chromadb.EmbeddingFunction:
119119
f"Failed to use {configs.embedding_function}. Falling back to Sentence Transformer.",
120120
file=sys.stderr,
121121
)
122-
finally:
123122
return embedding_functions.SentenceTransformerEmbeddingFunction()
124123

125124

0 commit comments

Comments
 (0)