feat(datasource):add oceanbase support (#1622)

Co-authored-by: csunny <cfqsunny@163.com>
Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
明天
2024-06-13 15:13:50 +08:00
committed by GitHub
parent 58d08780d6
commit 0541d1494c
37 changed files with 117 additions and 36 deletions

View File

@@ -90,9 +90,9 @@ class HuggingFaceEmbeddings(BaseModel, Embeddings):
) from exc
kwargs["client"] = sentence_transformers.SentenceTransformer(
kwargs.get("model_name"),
kwargs.get("model_name") or DEFAULT_MODEL_NAME,
cache_folder=kwargs.get("cache_folder"),
**kwargs.get("model_kwargs"),
**(kwargs.get("model_kwargs") or {}),
)
super().__init__(**kwargs)