mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
refactor: rename new runtime as sandbox feature
This commit is contained in:
@ -71,7 +71,7 @@ export const useNodesSyncDraft = () => {
|
||||
retriever_resource: features.citation,
|
||||
sensitive_word_avoidance: features.moderation,
|
||||
file_upload: features.file,
|
||||
runtime: features.runtime,
|
||||
sandbox: features.sandbox,
|
||||
},
|
||||
environment_variables: environmentVariables,
|
||||
conversation_variables: conversationVariables,
|
||||
|
||||
@ -99,7 +99,7 @@ export const useWorkflowInit = () => {
|
||||
},
|
||||
features: {
|
||||
retriever_resource: { enabled: true },
|
||||
runtime: { enabled: enableSandboxRuntime },
|
||||
sandbox: { enabled: enableSandboxRuntime },
|
||||
},
|
||||
environment_variables: [],
|
||||
conversation_variables: [],
|
||||
|
||||
@ -748,7 +748,7 @@ export const useWorkflowRun = () => {
|
||||
citation: publishedWorkflow.features.retriever_resource,
|
||||
moderation: publishedWorkflow.features.sensitive_word_avoidance,
|
||||
file: publishedWorkflow.features.file_upload,
|
||||
runtime: publishedWorkflow.features.runtime || { enabled: false },
|
||||
sandbox: publishedWorkflow.features.sandbox || { enabled: false },
|
||||
}
|
||||
|
||||
featuresStore?.setState({ features: mappedFeatures })
|
||||
|
||||
Reference in New Issue
Block a user