Include finish reason in meta info response (#415)

This commit is contained in:
Enrique Shockwave
2024-05-09 08:14:01 +01:00
committed by GitHub
parent d5de20a3ee
commit e2c31fca5c

View File

@@ -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:
(