mirror of https://github.com/langgenius/dify.git
This commit is contained in:
parent
f7fbded8b9
commit
3d0e288e85
|
|
@ -244,7 +244,9 @@ class GetOnlineDocumentPageContentRequest(BaseModel):
|
|||
Get online document page content request
|
||||
"""
|
||||
|
||||
online_document_info: OnlineDocumentInfo
|
||||
workspace_id: str = Field(..., description="The workspace id")
|
||||
page_id: str = Field(..., description="The page id")
|
||||
type: str = Field(..., description="The type of the page")
|
||||
|
||||
|
||||
class OnlineDocumentPageContent(BaseModel):
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ class PluginDatasourceManager(BasePluginClient):
|
|||
"provider": datasource_provider_id.provider_name,
|
||||
"datasource": datasource_name,
|
||||
"credentials": credentials,
|
||||
"datasource_parameters": datasource_parameters,
|
||||
"page": datasource_parameters,
|
||||
},
|
||||
},
|
||||
headers={
|
||||
|
|
|
|||
|
|
@ -103,7 +103,11 @@ class DatasourceNode(BaseNode[DatasourceNodeData]):
|
|||
online_document_result: Generator[DatasourceMessage, None, None] = (
|
||||
datasource_runtime.get_online_document_page_content(
|
||||
user_id=self.user_id,
|
||||
datasource_parameters=GetOnlineDocumentPageContentRequest(**parameters),
|
||||
datasource_parameters=GetOnlineDocumentPageContentRequest(
|
||||
workspace_id=datasource_info.get("workspace_id"),
|
||||
page_id=datasource_info.get("page").get("page_id"),
|
||||
type=datasource_info.get("type"),
|
||||
),
|
||||
provider_type=datasource_type,
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue