Unverified Commit 4b94ed8f authored by Andrew Xia's avatar Andrew Xia Committed by GitHub
Browse files

[Frontend][2/n] remove empty content from _parse_tool_calls_from_content (#28331)


Signed-off-by: default avatarAndrew Xia <axia@fb.com>
Co-authored-by: default avatarAndrew Xia <axia@fb.com>
parent 6dec9f61
...@@ -1375,6 +1375,8 @@ class OpenAIServing: ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment