Skip to content

Commit 1f29389

Browse files
authored
fix tool parser (#7167)
1 parent 72bf3db commit 1f29389

File tree

3 files changed

+1019
-310
lines changed

3 files changed

+1019
-310
lines changed

fastdeploy/entrypoints/openai/tool_parsers/ernie_45_vl_thinking_tool_parser.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,6 @@ def extract_tool_calls_streaming(
245245
if self.valid is not None and not self.valid:
246246
return DeltaMessage(content=delta_text)
247247

248-
# Skip empty chunks
249-
if len(delta_text.strip()) == 0:
250-
return None
251-
252248
try:
253249
delta = None
254250
# Use buffer to accumulate delta_text content

0 commit comments

Comments
 (0)