added a fix to make description optional in rosie's tool repack

This commit is contained in:
Concedo 2026-04-30 17:32:34 +08:00
parent eca9f4c1df
commit ef79904628

View file

@ -3841,7 +3841,7 @@ def compress_tools_array(tools_array):
tool_props[prop_name] = prop_type
tools_array_filtered.append({
"name": tool_data['name'],
"description": tool_data['description'],
"description": tool_data.get("description", ""),
"properties": tool_props
})