ソースを参照

r2

tags/2.0.0-beta.1
jyong 4ヶ月前
コミット
5f08a9314c
2個のファイルの変更4行の追加4行の削除
  1. 1
    1
      api/core/plugin/impl/datasource.py
  2. 3
    3
      api/services/rag_pipeline/rag_pipeline.py

+ 1
- 1
api/core/plugin/impl/datasource.py ファイルの表示

@@ -242,7 +242,7 @@ class PluginDatasourceManager(BasePluginClient):
"author": "langgenius",
"name": "file",
"label": {"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://assets.dify.ai/images/File%20Upload.svg",
"description": {"zh_Hans": "File", "en_US": "File", "pt_BR": "File", "ja_JP": "File"},
},
"credentials_schema": [],

+ 3
- 3
api/services/rag_pipeline/rag_pipeline.py ファイルの表示

@@ -126,7 +126,7 @@ class RagPipelineService:
Delete customized pipeline template.
"""
customized_template: PipelineCustomizedTemplate | None = (
db.query(PipelineCustomizedTemplate)
db.session.query(PipelineCustomizedTemplate)
.filter(
PipelineCustomizedTemplate.id == template_id,
PipelineCustomizedTemplate.tenant_id == current_user.current_tenant_id,
@@ -135,8 +135,8 @@ class RagPipelineService:
)
if not customized_template:
raise ValueError("Customized pipeline template not found.")
db.delete(customized_template)
db.commit()
db.session.delete(customized_template)
db.session.commit()

def get_draft_workflow(self, pipeline: Pipeline) -> Optional[Workflow]:
"""

読み込み中…
キャンセル
保存