Fix tools/call: avoid double-encoding string results
This commit is contained in:
+1
-1
@@ -524,7 +524,7 @@ def make_app() -> FastAPI:
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": json.dumps(result, ensure_ascii=False),
|
||||
"text": (result if isinstance(result, str) else json.dumps(result, ensure_ascii=False)),
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user