[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:
Andrew Xia 2025-11-10 14:07:49 -08:00 committed by GitHub
parent 6dec9f6109
commit 4b94ed8f92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1375,6 +1375,8 @@ class OpenAIServing:
for tool_call in tool_call_info.tool_calls
)
content = tool_call_info.content
if content and content.strip() == "":
content = None
else:
# No tool calls.
return None, content