Skip to content

Commit 1e96043

Browse files
committed
fix stream
1 parent a9ed330 commit 1e96043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightllm/server/function_call_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def parse_streaming_increment(self, new_text: str, tools: List[Tool]) -> Streami
440440
self._normal_text_buffer += result.normal_text
441441

442442
# Check if buffer contains complete end token (without leading newline)
443-
end_token_without_newline = self.eot_token[1:] # "</tool_call>"
443+
end_token_without_newline = self.eot_token # "</tool_call>"
444444
if end_token_without_newline in self._normal_text_buffer:
445445
cleaned_text = self._normal_text_buffer.replace(end_token_without_newline, "")
446446
self._normal_text_buffer = ""

0 commit comments

Comments
 (0)