File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
invokeai/frontend/web/src/services/api Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 99 isFluxMainModelModelConfig ,
1010 isIPAdapterModelConfig ,
1111 isLoRAModelConfig ,
12- isNonRefinerMainModelConfig ,
12+ isNonRefinerNonFluxMainModelConfig ,
1313 isNonSDXLMainModelConfig ,
1414 isRefinerMainModelModelConfig ,
1515 isSDXLMainModelModelConfig ,
@@ -35,7 +35,7 @@ const buildModelsHook =
3535 return [ modelConfigs , result ] as const ;
3636 } ;
3737
38- export const useMainModels = buildModelsHook ( isNonRefinerMainModelConfig ) ;
38+ export const useMainModels = buildModelsHook ( isNonRefinerNonFluxMainModelConfig ) ;
3939export const useNonSDXLMainModels = buildModelsHook ( isNonSDXLMainModelConfig ) ;
4040export const useRefinerModels = buildModelsHook ( isRefinerMainModelModelConfig ) ;
4141export 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
126126 return config . type === 'main' && config . base !== 'sdxl-refiner' ;
127127} ;
128128
129+ export const isNonRefinerNonFluxMainModelConfig = ( config : AnyModelConfig ) : config is MainModelConfig => {
130+ return config . type === 'main' && config . base !== 'sdxl-refiner' && config . base !== 'flux' ;
131+ } ;
132+
129133export const isRefinerMainModelModelConfig = ( config : AnyModelConfig ) : config is MainModelConfig => {
130134 return config . type === 'main' && config . base === 'sdxl-refiner' ;
131135} ;
You can’t perform that action at this time.
0 commit comments