mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +08:00
fix(plugin): introduce response_type parameter in plugin list API to enable paginated response support (#22251)
This commit is contained in:
parent
a0b32b6027
commit
8e910d8c59
@ -36,7 +36,7 @@ class PluginInstaller(BasePluginClient):
|
|||||||
"GET",
|
"GET",
|
||||||
f"plugin/{tenant_id}/management/list",
|
f"plugin/{tenant_id}/management/list",
|
||||||
PluginListResponse,
|
PluginListResponse,
|
||||||
params={"page": 1, "page_size": 256},
|
params={"page": 1, "page_size": 256, "response_type": "paged"},
|
||||||
)
|
)
|
||||||
return result.list
|
return result.list
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ class PluginInstaller(BasePluginClient):
|
|||||||
"GET",
|
"GET",
|
||||||
f"plugin/{tenant_id}/management/list",
|
f"plugin/{tenant_id}/management/list",
|
||||||
PluginListResponse,
|
PluginListResponse,
|
||||||
params={"page": page, "page_size": page_size},
|
params={"page": page, "page_size": page_size, "response_type": "paged"},
|
||||||
)
|
)
|
||||||
|
|
||||||
def upload_pkg(
|
def upload_pkg(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user