fix: model logs loading

This commit is contained in:
jialin
2024-11-29 13:41:28 +08:00
parent 890287ce72
commit 435161854c
13 changed files with 104 additions and 26 deletions
@@ -322,6 +322,19 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
}
]
},
{
type: 'Checkbox',
name: 'random_seed',
label: {
text: 'playground.image.params.randomseed',
isLocalized: true
},
rules: [
{
required: false
}
]
},
{
type: 'InputNumber',
name: 'seed',
@@ -329,6 +342,13 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
text: 'playground.image.params.seed',
isLocalized: true
},
attrs: {
min: 0
},
disabledConfig: {
depends: ['random_seed'],
when: (values: Record<string, any>): boolean => values?.random_seed
},
rules: [
{
required: false
+4
View File
@@ -38,6 +38,10 @@ export interface ParamsSchema {
max?: number;
step?: number;
disabled?: boolean;
disabledConfig?: {
depends: string[];
when: (values: Record<string, any>) => boolean;
};
defaultValue?: string | number | boolean;
rules: { required: boolean; message?: string }[];
placeholder?: string;