Skip to content

Commit 94d7045

Browse files
author
wanghao7
committed
Merge remote-tracking branch 'origin/prefill_overlap' into prefill_overlap
2 parents a2139b8 + a20fdd0 commit 94d7045

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightllm/server/api_tgi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ async def tgi_generate_impl(request: Request, httpserver_manager: HttpServerMana
126126
"generated_tokens": count_output_tokens_dict[sub_id],
127127
"finish_reason": finish_status_dict[sub_id].get_finish_reason(),
128128
"tokens": tokens_dict[sub_id],
129+
"prompt_tokens": tokens_dict[sub_id][0]["prompt_tokens"],
129130
}
130131
if prompt_token_ids is not None:
131132
ret["prompt_token_ids"] = prompt_token_ids

0 commit comments

Comments
 (0)