[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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user