[CI] fix ruff format (#26579)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey
2025-10-10 18:02:12 +08:00
committed by GitHub
parent ab196edefb
commit 720d3cd0f0
2 changed files with 86 additions and 90 deletions

View File

@@ -260,8 +260,10 @@ def parse_chat_input(chat_msg) -> list[Message]:
# Handle array format for tool message content
# by concatenating all text parts.
content = "".join(
item.get("text", "") for item in content
if isinstance(item, dict) and item.get("type") == "text")
item.get("text", "")
for item in content
if isinstance(item, dict) and item.get("type") == "text"
)
msg = Message.from_author_and_content(
Author.new(Role.TOOL, f"functions.{name}"), content