Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(plugin): introduce response_type parameter in plugin list API to enable paginated response support (#22251)

homejim8e910d8c59fb
diff --git a/api/core/plugin/impl/plugin.py b/api/core/plugin/impl/plugin.py
index b7f7b316557..04ac8c9649a 100644
--- a/api/core/plugin/impl/plugin.py
+++ b/api/core/plugin/impl/plugin.py
@@ -36,7 +36,7 @@ class PluginInstaller(BasePluginClient):
"GET",
f"plugin/{tenant_id}/management/list",
PluginListResponse,
- params={"page": 1, "page_size": 256},
+ params={"page": 1, "page_size": 256, "response_type": "paged"},
)
return result.list
@@ -45,7 +45,7 @@ class PluginInstaller(BasePluginClient):
"GET",
f"plugin/{tenant_id}/management/list",
PluginListResponse,
- params={"page": page, "page_size": page_size},
+ params={"page": page, "page_size": page_size, "response_type": "paged"},
)
def upload_pkg(