mirror of https://github.com/langgenius/dify.git
Optimize code.
This commit is contained in:
parent
29698aeed2
commit
3782f17dc7
|
|
@ -5,6 +5,7 @@ from uuid import UUID
|
|||
|
||||
from flask import abort, request
|
||||
from flask_restx import Resource, marshal_with # type: ignore
|
||||
from flask_restx import reqparse
|
||||
from pydantic import BaseModel, Field
|
||||
from sqlalchemy.orm import Session
|
||||
from werkzeug.exceptions import Forbidden, InternalServerError, NotFound
|
||||
|
|
@ -968,10 +969,6 @@ class RagPipelineDatasourceVariableApi(Resource):
|
|||
)
|
||||
return workflow_node_execution
|
||||
|
||||
|
||||
from flask_restx import reqparse
|
||||
|
||||
|
||||
@console_ns.route("/rag/pipelines/recommended-plugins")
|
||||
class RagPipelineRecommendedPluginApi(Resource):
|
||||
@setup_required
|
||||
|
|
|
|||
Loading…
Reference in New Issue