mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-18 20:27:58 +00:00
fixed
This commit is contained in:
parent
4b59ab3f50
commit
2d5468a204
@ -190,7 +190,7 @@ async def lollms_generate(request: LollmsGenerateRequest):
|
|||||||
elf_server.cancel_gen = False
|
elf_server.cancel_gen = False
|
||||||
return StreamingResponse(generate_chunks(), media_type="text/plain", headers=headers)
|
return StreamingResponse(generate_chunks(), media_type="text/plain", headers=headers)
|
||||||
else:
|
else:
|
||||||
def callback(chunk, chunk_type:MSG_TYPE_CONTENT=MSG_OPERATION_TYPE.MSG_OPERATION_TYPE_ADD_CHUNK):
|
def callback(chunk, chunk_type:MSG_OPERATION_TYPE=MSG_OPERATION_TYPE.MSG_OPERATION_TYPE_ADD_CHUNK):
|
||||||
# Yield each chunk of data
|
# Yield each chunk of data
|
||||||
if chunk is None:
|
if chunk is None:
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user