Skip to content

Commit c7e03a5

Browse files
committed
fix: correct docstring formatting in Gemma4ReasoningParser
- Updated the docstring to use raw string notation for better handling of escape sequences. - Adjusted the line break in the example to ensure proper formatting.
1 parent e85ebd4 commit c7e03a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/parsers/gemma4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ def _parse_tool_call_body(body: str) -> dict | None:
132132

133133

134134
class Gemma4ReasoningParser(AbstractReasoningParser):
135-
"""Reasoning parser for Gemma 4 models.
135+
r"""Reasoning parser for Gemma 4 models.
136136
137137
Thinking content is wrapped in:
138-
<|channel>thought\\n ... <channel|>
138+
<|channel>thought\n ... <channel|>
139139
"""
140140

141141
def __init__(

0 commit comments

Comments
 (0)