mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
add agent app convert command
This commit is contained in:
@ -77,7 +77,10 @@ class ConvertToWorkflowApi(Resource):
|
||||
"""
|
||||
# convert to workflow mode
|
||||
workflow_service = WorkflowService()
|
||||
workflow = workflow_service.chatbot_convert_to_workflow(app_model=app_model)
|
||||
workflow = workflow_service.chatbot_convert_to_workflow(
|
||||
app_model=app_model,
|
||||
account=current_user
|
||||
)
|
||||
|
||||
# return workflow
|
||||
return workflow
|
||||
|
||||
Reference in New Issue
Block a user