fix: async output

This commit is contained in:
csunny 2023-06-14 22:02:23 +08:00
parent 69f26c91e7
commit 30c533515a

View File

@ -76,7 +76,10 @@ class ModelWorker:
# Please do not open the output in production! # Please do not open the output in production!
# The gpt4all thread shares stdout with the parent process, # The gpt4all thread shares stdout with the parent process,
# and opening it may affect the frontend output. # and opening it may affect the frontend output.
# print("output: ", output)
if not ("gptj" in CFG.LLM_MODEL or "guanaco" in CFG.LLM_MODEL):
print("output: ", output)
ret = { ret = {
"text": output, "text": output,
"error_code": 0, "error_code": 0,