upgrade run ui

This commit is contained in:
Shivering Ocelot committed 2026-06-06 16:36:01 -05:00
1 parent bb204f2c6c
commit a10224d21e
6 files changed
+91 -18

No files matched your search

+3 -1
View File
@@ -18,8 +18,10 @@ frontend_path = '../../frontend/dist'
def encode_json(value):
def encode_unknown(value):
if value is ToolSpec:
if isinstance(value, ToolSpec):
return value.to_openai_dict()
elif isinstance(value, Stream):
return {'streamId': value.id}
else:
return repr(value)
return json.dumps(value, default=encode_unknown)