This commit is contained in:
Xi Yan 2024-12-30 11:47:57 -08:00
parent 949b07f25e
commit 0f5ca150e5

View file

@ -26,7 +26,7 @@ def serialize_value(value: Any) -> Any:
try:
return value.model_dump_json()
except Exception as e:
# TODO: fix this
# We cannot serialize the binary bytes data
return value.model_dump()
elif isinstance(value, (list, tuple, set)):
return [serialize_value(item) for item in value]