extensions/openai: Fix error when preparing cache for embedding models (#3995)
This commit is contained in:
parent
7a3ca2c68f
commit
9de2dfa887
2 changed files with 9 additions and 3 deletions
|
@ -6,7 +6,6 @@
|
|||
import os
|
||||
|
||||
import sentence_transformers
|
||||
from extensions.openai.script import params
|
||||
|
||||
st_model = os.environ.get("OPENEDAI_EMBEDDING_MODEL", params.get('embedding_model', 'all-mpnet-base-v2'))
|
||||
st_model = os.environ.get("OPENEDAI_EMBEDDING_MODEL", "all-mpnet-base-v2")
|
||||
model = sentence_transformers.SentenceTransformer(st_model)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue