Skip to content

Commit 1e3de73

Browse files
author
Andrew Xia
committed
initial commit strip tool content
Signed-off-by: Andrew Xia <axia@fb.com>
1 parent 155ad56 commit 1e3de73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vllm/entrypoints/openai/serving_engine.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,8 @@ def _parse_tool_calls_from_content(
13751375
for tool_call in tool_call_info.tool_calls
13761376
)
13771377
content = tool_call_info.content
1378+
if content.strip() == "":
1379+
content = None
13781380
else:
13791381
# No tool calls.
13801382
return None, content

0 commit comments

Comments
 (0)