mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 04:26:30 +08:00
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 import abort, request
|
||||||
from flask_restx import Resource, marshal_with # type: ignore
|
from flask_restx import Resource, marshal_with # type: ignore
|
||||||
|
from flask_restx import reqparse
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
from sqlalchemy.orm import Session
|
from sqlalchemy.orm import Session
|
||||||
from werkzeug.exceptions import Forbidden, InternalServerError, NotFound
|
from werkzeug.exceptions import Forbidden, InternalServerError, NotFound
|
||||||
@ -968,10 +969,6 @@ class RagPipelineDatasourceVariableApi(Resource):
|
|||||||
)
|
)
|
||||||
return workflow_node_execution
|
return workflow_node_execution
|
||||||
|
|
||||||
|
|
||||||
from flask_restx import reqparse
|
|
||||||
|
|
||||||
|
|
||||||
@console_ns.route("/rag/pipelines/recommended-plugins")
|
@console_ns.route("/rag/pipelines/recommended-plugins")
|
||||||
class RagPipelineRecommendedPluginApi(Resource):
|
class RagPipelineRecommendedPluginApi(Resource):
|
||||||
@setup_required
|
@setup_required
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user