feat: new runtime options

This commit is contained in:
Harry
2026-01-07 00:01:55 +08:00
parent 1c7c475c43
commit 3902929d9f
15 changed files with 108 additions and 7 deletions

View File

@ -85,6 +85,11 @@ export const useWorkflowInit = () => {
const nodesData = isAdvancedChat ? nodesTemplate : []
const edgesData = isAdvancedChat ? edgesTemplate : []
const runtimeStorageKey = `workflow:sandbox-runtime:${appDetail.id}`
const enableSandboxRuntime = localStorage.getItem(runtimeStorageKey) === '1'
if (enableSandboxRuntime)
localStorage.removeItem(runtimeStorageKey)
syncWorkflowDraft({
url: `/apps/${appDetail.id}/workflows/draft`,
params: {
@ -94,6 +99,7 @@ export const useWorkflowInit = () => {
},
features: {
retriever_resource: { enabled: true },
runtime: { enabled: enableSandboxRuntime },
},
environment_variables: [],
conversation_variables: [],