Fix tools/call: avoid double-encoding string results

This commit is contained in:
2026-06-13 20:55:27 +00:00
parent 205174dfb3
commit 20c75d1ca3
+1 -1
View File
@@ -524,7 +524,7 @@ def make_app() -> FastAPI:
"content": [ "content": [
{ {
"type": "text", "type": "text",
"text": json.dumps(result, ensure_ascii=False), "text": (result if isinstance(result, str) else json.dumps(result, ensure_ascii=False)),
} }
] ]
}, },