mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
Add "type" field to PipelineRecommendedPlugin model; Add query param "type" to recommended-plugins api.
This commit is contained in:
@ -1248,7 +1248,7 @@ class RagPipelineService:
|
||||
session.commit()
|
||||
return workflow_node_execution_db_model
|
||||
|
||||
def get_recommended_plugins(self, type) -> dict:
|
||||
def get_recommended_plugins(self, type: str) -> dict:
|
||||
# Query active recommended plugins
|
||||
query = db.session.query(PipelineRecommendedPlugin).where(PipelineRecommendedPlugin.active == True)
|
||||
if type and type != "all":
|
||||
|
||||
Reference in New Issue
Block a user