mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-20 03:36:30 +00:00
added stopgen
This commit is contained in:
parent
4ef9f5d72c
commit
310eafa0ab
@ -299,3 +299,10 @@ def v1_instruct_generate(request_data: V1InstructGenerateRequest):
|
||||
return output["text"]
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
|
||||
@router.post("/stop_gen")
|
||||
def stop_gen():
|
||||
elf_server.cancel_gen = True
|
||||
return {"status": True}
|
||||
|
Loading…
Reference in New Issue
Block a user