mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
refactor: rename new runtime as sandbox feature
This commit is contained in:
@ -54,7 +54,7 @@ export const createFeaturesStore = (initProps?: Partial<FeaturesState>) => {
|
||||
annotationReply: {
|
||||
enabled: false,
|
||||
},
|
||||
runtime: {
|
||||
sandbox: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
|
||||
@ -91,7 +91,7 @@ export enum FeatureEnum {
|
||||
moderation = 'moderation',
|
||||
file = 'file',
|
||||
annotationReply = 'annotationReply',
|
||||
runtime = 'runtime',
|
||||
sandbox = 'sandbox',
|
||||
}
|
||||
|
||||
export type Features = {
|
||||
@ -104,7 +104,7 @@ export type Features = {
|
||||
[FeatureEnum.moderation]?: SensitiveWordAvoidance
|
||||
[FeatureEnum.file]?: FileUpload
|
||||
[FeatureEnum.annotationReply]?: AnnotationReplyConfig
|
||||
[FeatureEnum.runtime]?: Runtime
|
||||
[FeatureEnum.sandbox]?: Runtime
|
||||
}
|
||||
|
||||
export type OnFeaturesChange = (features?: Features) => void
|
||||
|
||||
Reference in New Issue
Block a user