Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzeXie committed Feb 14, 2024
1 parent 324bcc6 commit 0c86938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastchat/serve/sglang_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async def api_generate_stream(request: Request):
await acquire_worker_semaphore()
generator = worker.generate_stream_gate(params)
background_tasks = create_background_tasks()
return StreamingResponse(generator)
return StreamingResponse(generator, background=background_tasks)


@app.post("/worker_generate")
Expand Down

0 comments on commit 0c86938

Please sign in to comment.