Merge pull request #30 from GeorgeGalway/fix_issue#29
[fix issue#29] api error
This commit is contained in:
commit
fef3e85061
|
@ -474,7 +474,7 @@ def dialogue_page(api: ApiRequest):
|
|||
prompt, search_engine, se_top_k, history, embed_model=EMBEDDING_MODEL,
|
||||
embed_model_path=embedding_model_dict[EMBEDDING_MODEL],
|
||||
model_device=EMBEDDING_DEVICE, embed_engine=EMBEDDING_ENGINE, llm_model=LLM_MODEL,
|
||||
pi_key=llm_model_dict[LLM_MODEL]["api_key"],
|
||||
api_key=llm_model_dict[LLM_MODEL]["api_key"],
|
||||
api_base_url=llm_model_dict[LLM_MODEL]["api_base_url"],)
|
||||
):
|
||||
if error_msg := check_error_msg(d): # check whether error occured
|
||||
|
|
|
@ -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"],
|
||||
):
|
||||
|
|
Loading…
Reference in New Issue