Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: PUT method does not work as expected with Invoke component (#5081)

flygithub189007e44d38
diff --git a/agent/component/invoke.py b/agent/component/invoke.py
index 8f36c8c149..22a279cef7 100644
--- a/agent/component/invoke.py
+++ b/agent/component/invoke.py
@@ -95,7 +95,7 @@ class Invoke(ComponentBase, ABC):
if method == 'put':
response = requests.put(url=url,
- data=args,
+ json=args,
headers=headers,
proxies=proxies,
timeout=self._param.timeout)