[fix issue#29] api error

This commit is contained in:
高培文 2024-03-13 13:04:30 +08:00
parent 333f1e97c6
commit 1c0be9caf2
1 changed files with 1 additions and 1 deletions

View File

@ -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