We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d087afb commit 2f6f063Copy full SHA for 2f6f063
fastdeploy/reasoning/ernie_x1_reasoning_parsers.py
@@ -122,10 +122,14 @@ def extract_reasoning_content_streaming(
122
):
123
return DeltaMessage(content=delta_text)
124
elif model_status == "think_end":
125
- if self.response_start_token_id in current_token_ids:
+ if (
126
+ self.response_start_token_id in current_token_ids
127
+ and self.response_end_token_id not in current_token_ids
128
+ ):
129
130
elif model_status == "response_start":
- return DeltaMessage(content=delta_text)
131
+ if self.response_end_token_id not in current_token_ids:
132
+ return DeltaMessage(content=delta_text)
133
134
return None
135
0 commit comments