bugfix
This commit is contained in:
parent
9f6349ea62
commit
ddceb69b20
@ -35,6 +35,7 @@ class LLMHandler:
|
|||||||
async for d in env.inference_generator(self.request, params_kw=kw):
|
async for d in env.inference_generator(self.request, params_kw=kw):
|
||||||
try:
|
try:
|
||||||
j = DictObject(**json.loads(d))
|
j = DictObject(**json.loads(d))
|
||||||
|
if j.content:
|
||||||
txt += j.content
|
txt += j.content
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exception(f'{e}\n{format_exc()}')
|
exception(f'{e}\n{format_exc()}')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user