mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-07 11:23:40 +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!
|
# 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,
|
||||||
|
Loading…
Reference in New Issue
Block a user