File tree 2 files changed +6
-2
lines changed
invokeai/frontend/web/src/services/api
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 9
9
isFluxMainModelModelConfig ,
10
10
isIPAdapterModelConfig ,
11
11
isLoRAModelConfig ,
12
- isNonRefinerMainModelConfig ,
12
+ isNonRefinerNonFluxMainModelConfig ,
13
13
isNonSDXLMainModelConfig ,
14
14
isRefinerMainModelModelConfig ,
15
15
isSDXLMainModelModelConfig ,
@@ -35,7 +35,7 @@ const buildModelsHook =
35
35
return [ modelConfigs , result ] as const ;
36
36
} ;
37
37
38
- export const useMainModels = buildModelsHook ( isNonRefinerMainModelConfig ) ;
38
+ export const useMainModels = buildModelsHook ( isNonRefinerNonFluxMainModelConfig ) ;
39
39
export const useNonSDXLMainModels = buildModelsHook ( isNonSDXLMainModelConfig ) ;
40
40
export const useRefinerModels = buildModelsHook ( isRefinerMainModelModelConfig ) ;
41
41
export const useFluxModels = buildModelsHook ( isFluxMainModelModelConfig ) ;
Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ export const isNonRefinerMainModelConfig = (config: AnyModelConfig): config is M
126
126
return config . type === 'main' && config . base !== 'sdxl-refiner' ;
127
127
} ;
128
128
129
+ export const isNonRefinerNonFluxMainModelConfig = ( config : AnyModelConfig ) : config is MainModelConfig => {
130
+ return config . type === 'main' && config . base !== 'sdxl-refiner' && config . base !== 'flux' ;
131
+ } ;
132
+
129
133
export const isRefinerMainModelModelConfig = ( config : AnyModelConfig ) : config is MainModelConfig => {
130
134
return config . type === 'main' && config . base === 'sdxl-refiner' ;
131
135
} ;
You can’t perform that action at this time.
0 commit comments