Include finish reason in meta info response (#415)
This commit is contained in:
committed by
GitHub
parent
d5de20a3ee
commit
e2c31fca5c
@@ -586,6 +586,8 @@ class ModelRpcServer:
|
||||
+ len(req.output_ids)
|
||||
- req.prompt_tokens,
|
||||
"completion_tokens_wo_jump_forward": req.completion_tokens_wo_jump_forward,
|
||||
"finish_reason": req.finish_reason,
|
||||
"hit_stop_str": req.hit_stop_str,
|
||||
}
|
||||
if req.return_logprob:
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user