ChatGLM改成多进程运行

This commit is contained in:
qingxu fu
2023-04-15 19:09:03 +08:00
parent 294ac338bd
commit 6aba339538
7 changed files with 270 additions and 212 deletions

View File

@@ -20,7 +20,8 @@ def 同时问询(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt
gpt_say = yield from request_gpt_model_in_new_thread_with_ui_alive(
inputs=txt, inputs_show_user=txt,
llm_kwargs=llm_kwargs, chatbot=chatbot, history=history,
sys_prompt=system_prompt
sys_prompt=system_prompt,
retry_times_at_unknown_error=0
)
history.append(txt)