mirror of
https://github.com/langgenius/dify.git
synced 2026-03-03 23:06:20 +08:00
Optimize code.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user