Timothy Jaeryang Baek 2 周之前
父節點
當前提交
06e5c00f24
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/utils/mcp/client.py

+ 1 - 1
backend/open_webui/utils/mcp/client.py

@@ -69,7 +69,7 @@ class MCPClient:
         if not result:
             raise Exception("No result returned from MCP tool call.")
 
-        result_dict = result.model_dump()
+        result_dict = result.model_dump(mode="json")
         result_content = result_dict.get("content", {})
 
         if result.isError: