mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
refactor app mode
add app import and export
This commit is contained in:
@ -21,7 +21,7 @@ from events.app_event import app_was_created
|
||||
from extensions.ext_database import db
|
||||
from models.account import Account
|
||||
from models.api_based_extension import APIBasedExtension, APIBasedExtensionPoint
|
||||
from models.model import App, AppMode, AppModelConfig, ChatbotAppEngine, Site
|
||||
from models.model import App, AppMode, AppModelConfig, Site
|
||||
from models.workflow import Workflow, WorkflowType
|
||||
|
||||
|
||||
@ -85,8 +85,6 @@ class WorkflowConverter:
|
||||
new_app_model_config.chat_prompt_config = ''
|
||||
new_app_model_config.completion_prompt_config = ''
|
||||
new_app_model_config.dataset_configs = ''
|
||||
new_app_model_config.chatbot_app_engine = ChatbotAppEngine.WORKFLOW.value \
|
||||
if app_model.mode == AppMode.CHAT.value else ChatbotAppEngine.NORMAL.value
|
||||
new_app_model_config.workflow_id = workflow.id
|
||||
|
||||
db.session.add(new_app_model_config)
|
||||
|
||||
Reference in New Issue
Block a user