[fix issue#29]EMBEDDING_MODEL error

This commit is contained in:
高培文 2024-03-13 14:18:18 +08:00
parent 1c0be9caf2
commit 74cab0fd4c
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ def knowledge_page(
empty.progress(0.0, "")
for d in api.recreate_vector_store(
kb, vs_type=default_vs_type, embed_model=embedding_model, embedding_device=EMBEDDING_DEVICE,
embed_model_path=embedding_model_dict["embedding_model"], embed_engine=EMBEDDING_ENGINE,
embed_model_path=embedding_model_dict[EMBEDDING_MODEL], embed_engine=EMBEDDING_ENGINE,
api_key=llm_model_dict[LLM_MODEL]["api_key"],
api_base_url=llm_model_dict[LLM_MODEL]["api_base_url"],
):