[RL] update reschedule finish reason (#2709)

This commit is contained in:
ltd0924
2025-07-04 13:47:36 +08:00
committed by GitHub
parent 667547be59
commit 87e638498c
2 changed files with 3 additions and 3 deletions

View File

@@ -222,7 +222,7 @@ class OpenAIServingChat:
choice.finish_reason = "length"
if res.get("error_msg") is not None and "Recover" in res["error_msg"]:
choice.finish_reason = "length"
choice.finish_reason = "recover_stop"
if request.metadata is not None and request.metadata.get("training", False) and delta_text != "":
choice.delta.token_ids = output["token_ids"]
@@ -340,7 +340,7 @@ class OpenAIServingChat:
choice.finish_reason = "length"
if final_res.get("error_msg") is not None and "Recover" in final_res["error_msg"]:
choice.finish_reason = "length"
choice.finish_reason = "recover_stop"
choices.append(choice)
num_prompt_tokens = len(prompt_token_ids)