mirror of https://github.com/langgenius/dify.git
fix: param passing
This commit is contained in:
parent
6098dc0242
commit
f3c6d1ca1d
|
|
@ -12,7 +12,14 @@ class PluginAssetManager(BasePluginClient):
|
|||
return response.content
|
||||
|
||||
def extract_asset(self, tenant_id: str, plugin_unique_identifier: str, filename: str) -> bytes:
|
||||
response = self._request(method="GET", path=f"plugin/{tenant_id}/asset/{plugin_unique_identifier}")
|
||||
response = self._request(
|
||||
method="GET",
|
||||
path=f"plugin/{tenant_id}/asset",
|
||||
params={
|
||||
"plugin_unique_identifier": plugin_unique_identifier,
|
||||
"file_name": filename
|
||||
}
|
||||
)
|
||||
if response.status_code != 200:
|
||||
raise ValueError(f"can not found asset {plugin_unique_identifier}, {str(response.status_code)}")
|
||||
return response.content
|
||||
|
|
|
|||
Loading…
Reference in New Issue