mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-23 04:05:01 +08:00
[Frontend][2/n] remove empty content from _parse_tool_calls_from_content (#28331)
Signed-off-by: Andrew Xia <axia@fb.com> Co-authored-by: Andrew Xia <axia@fb.com>
This commit is contained in:
parent
6dec9f6109
commit
4b94ed8f92
@ -1375,6 +1375,8 @@ class OpenAIServing:
|
|||||||
for tool_call in tool_call_info.tool_calls
|
for tool_call in tool_call_info.tool_calls
|
||||||
)
|
)
|
||||||
content = tool_call_info.content
|
content = tool_call_info.content
|
||||||
|
if content and content.strip() == "":
|
||||||
|
content = None
|
||||||
else:
|
else:
|
||||||
# No tool calls.
|
# No tool calls.
|
||||||
return None, content
|
return None, content
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user