mirror of
https://github.com/langgenius/dify.git
synced 2026-03-13 11:07:40 +08:00
fix: Add sandbox feature to workflow features mapping
This commit is contained in:
@ -122,6 +122,7 @@ const WorkflowMain = ({
|
||||
citation: features.retriever_resource || { enabled: false },
|
||||
moderation: features.sensitive_word_avoidance || { enabled: false },
|
||||
annotationReply: features.annotation_reply || { enabled: false },
|
||||
sandbox: features.sandbox || { enabled: false },
|
||||
}
|
||||
|
||||
setFeatures(transformedFeatures)
|
||||
|
||||
@ -67,6 +67,7 @@ export const useNodesSyncDraft = () => {
|
||||
retriever_resource: features.citation,
|
||||
sensitive_word_avoidance: features.moderation,
|
||||
file_upload: features.file,
|
||||
sandbox: features.sandbox,
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@ -60,6 +60,7 @@ const Features = () => {
|
||||
retriever_resource: currentFeatures.citation,
|
||||
sensitive_word_avoidance: currentFeatures.moderation,
|
||||
file_upload: currentFeatures.file,
|
||||
sandbox: currentFeatures.sandbox,
|
||||
}
|
||||
|
||||
await updateFeatures({
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import type {
|
||||
FileUpload,
|
||||
RetrieverResource,
|
||||
Runtime,
|
||||
SensitiveWordAvoidance,
|
||||
SpeechToText,
|
||||
SuggestedQuestionsAfterAnswer,
|
||||
@ -20,6 +21,7 @@ export type WorkflowDraftFeaturesPayload = {
|
||||
retriever_resource?: RetrieverResource
|
||||
sensitive_word_avoidance?: SensitiveWordAvoidance
|
||||
file_upload?: FileUpload
|
||||
sandbox?: Runtime
|
||||
}
|
||||
|
||||
export const workflowDraftEnvironmentVariablesContract = base
|
||||
|
||||
Reference in New Issue
Block a user