mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-06 19:04:24 +00:00
fix: async output
This commit is contained in:
parent
69f26c91e7
commit
30c533515a
@ -76,7 +76,10 @@ class ModelWorker:
|
||||
# Please do not open the output in production!
|
||||
# The gpt4all thread shares stdout with the parent process,
|
||||
# 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 = {
|
||||
"text": output,
|
||||
"error_code": 0,
|
||||
|
Loading…
Reference in New Issue
Block a user