Skip to content

Commit

Permalink
Fix SGLang worker (#3045)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored Feb 14, 2024
1 parent 324bcc6 commit 81225fc
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 81225fc

Please sign in to comment.