fix: remove provide type

feat/datasource
Yeuoly 1 year ago
parent b93d26ee9f
commit 4300ebc8aa

@ -97,7 +97,7 @@ class PluginDatasourceManager(BasePluginClient):
response = self._request_with_plugin_daemon_response_stream( response = self._request_with_plugin_daemon_response_stream(
"POST", "POST",
f"plugin/{tenant_id}/dispatch/datasource/{provider_type}/get_website_crawl", f"plugin/{tenant_id}/dispatch/datasource/get_website_crawl",
GetWebsiteCrawlResponse, GetWebsiteCrawlResponse,
data={ data={
"user_id": user_id, "user_id": user_id,
@ -136,7 +136,7 @@ class PluginDatasourceManager(BasePluginClient):
response = self._request_with_plugin_daemon_response_stream( response = self._request_with_plugin_daemon_response_stream(
"POST", "POST",
f"plugin/{tenant_id}/dispatch/datasource/{provider_type}/get_online_document_pages", f"plugin/{tenant_id}/dispatch/datasource/get_online_document_pages",
GetOnlineDocumentPagesResponse, GetOnlineDocumentPagesResponse,
data={ data={
"user_id": user_id, "user_id": user_id,
@ -175,7 +175,7 @@ class PluginDatasourceManager(BasePluginClient):
response = self._request_with_plugin_daemon_response_stream( response = self._request_with_plugin_daemon_response_stream(
"POST", "POST",
f"plugin/{tenant_id}/dispatch/datasource/{provider_type}/get_online_document_page_content", f"plugin/{tenant_id}/dispatch/datasource/get_online_document_page_content",
GetOnlineDocumentPageContentResponse, GetOnlineDocumentPageContentResponse,
data={ data={
"user_id": user_id, "user_id": user_id,
@ -233,45 +233,23 @@ class PluginDatasourceManager(BasePluginClient):
"name": "langgenius/file/file", "name": "langgenius/file/file",
"plugin_id": "langgenius/file", "plugin_id": "langgenius/file",
"plugin_unique_identifier": "langgenius/file:0.0.1@dify", "plugin_unique_identifier": "langgenius/file:0.0.1@dify",
"description": { "description": {"zh_Hans": "File", "en_US": "File", "pt_BR": "File", "ja_JP": "File"},
"zh_Hans": "File",
"en_US": "File",
"pt_BR": "File",
"ja_JP": "File"
},
"icon": "https://cloud.dify.ai/console/api/workspaces/current/plugin/icon?tenant_id=945b4365-9d99-48c1-8c47-90593fe8b9c9&filename=13d9312f6b1352d3939b90a5257de58ff3cd619d5be4f5b266ff0298935ac328.svg", "icon": "https://cloud.dify.ai/console/api/workspaces/current/plugin/icon?tenant_id=945b4365-9d99-48c1-8c47-90593fe8b9c9&filename=13d9312f6b1352d3939b90a5257de58ff3cd619d5be4f5b266ff0298935ac328.svg",
"label": { "label": {"zh_Hans": "File", "en_US": "File", "pt_BR": "File", "ja_JP": "File"},
"zh_Hans": "File",
"en_US": "File",
"pt_BR": "File",
"ja_JP": "File"
},
"type": "datasource", "type": "datasource",
"team_credentials": {}, "team_credentials": {},
"is_team_authorization": False, "is_team_authorization": False,
"allow_delete": True, "allow_delete": True,
"datasources": [{ "datasources": [
{
"author": "langgenius", "author": "langgenius",
"name": "upload_file", "name": "upload_file",
"label": { "label": {"en_US": "File", "zh_Hans": "File", "pt_BR": "File", "ja_JP": "File"},
"en_US": "File", "description": {"en_US": "File", "zh_Hans": "File", "pt_BR": "File", "ja_JP": "File."},
"zh_Hans": "File",
"pt_BR": "File",
"ja_JP": "File"
},
"description": {
"en_US": "File",
"zh_Hans": "File",
"pt_BR": "File",
"ja_JP": "File."
},
"parameters": [], "parameters": [],
"labels": [ "labels": ["search"],
"search" "output_schema": None,
}
], ],
"output_schema": None "labels": ["search"],
}],
"labels": [
"search"
]
} }

Loading…
Cancel
Save