Skip to content

Commit

Permalink
fix tgi details interface (#727)
Browse files Browse the repository at this point in the history
Co-authored-by: shihaobai <[email protected]>
  • Loading branch information
shihaobai and shihaobai authored Feb 14, 2025
1 parent 8d04a25 commit 5ab69f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightllm/server/api_tgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def tgi_generate_impl(request: Request, httpserver_manager: HttpServerMana
ret["prompt_logprobs"] = prompt_logprobs
assert ret is not None
if return_details:
ret["beam_sequences"] = beam_sequences
ret["details"]["beam_sequences"] = beam_sequences
# wrap generation inside a Vec to match api-inference
json_compatible_item_data = jsonable_encoder([ret])
return JSONResponse(content=json_compatible_item_data)
Expand Down

0 comments on commit 5ab69f2

Please sign in to comment.