[Bugfix] [Reasoning] Add reasoning_start_str/reasoning_end_str properties to reasoning parsers (#40566)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey
2026-04-22 07:27:44 +00:00
committed by GitHub
parent 123674879e
commit a2bd09c960
5 changed files with 41 additions and 0 deletions
@@ -33,6 +33,14 @@ class IdentityReasoningParser(ReasoningParser):
"constructor during construction."
)
@property
def reasoning_start_str(self) -> str | None:
return None
@property
def reasoning_end_str(self) -> str | None:
return None
def is_reasoning_end(self, input_ids: Sequence[int]) -> bool:
# Always return True, since we never treat reasoning specially
return True