|
@@ -96,8 +96,11 @@ def _data_adjust(obj):
|
|
|
if hasattr(obj, "tools"):
|
|
|
data["tools"] = _data_adjust_tools(data["tools"])
|
|
|
|
|
|
- if hasattr(obj, "file_ids") and data["file_ids"] is None:
|
|
|
- data["file_ids"] = []
|
|
|
+ if hasattr(obj, "file_ids"):
|
|
|
+ if data["file_ids"] is None:
|
|
|
+ data["file_ids"] = []
|
|
|
+ else:
|
|
|
+ data["file_ids"] = json.loads(data["file_ids"])
|
|
|
|
|
|
for key, value in data.items():
|
|
|
if isinstance(value, datetime):
|
|
@@ -107,7 +110,6 @@ def _data_adjust(obj):
|
|
|
)
|
|
|
print(data)
|
|
|
data["parallel_tool_calls"] = True
|
|
|
- data["file_ids"] = json.loads(data["file_ids"]) if data["file_ids"] else []
|
|
|
return data
|
|
|
|
|
|
|