mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 12:35:02 -05:00
Implement automatic reference image model switching on base model change
Co-authored-by: kent <kent@invoke.ai>
This commit is contained in:
committed by
psychedelicious
parent
50079ea349
commit
1caab2b9c4
@@ -400,3 +400,12 @@ export type UploadImageArg = {
|
||||
|
||||
export type ImageUploadEntryResponse = S['ImageUploadEntry'];
|
||||
export type ImageUploadEntryRequest = paths['/api/v1/images/']['post']['requestBody']['content']['application/json'];
|
||||
|
||||
export const isApiModelConfig = (config: AnyModelConfig): config is ApiModelConfig => {
|
||||
return (
|
||||
isChatGPT4oModelConfig(config) ||
|
||||
isImagen3ModelConfig(config) ||
|
||||
isImagen4ModelConfig(config) ||
|
||||
isFluxKontextApiModelConfig(config)
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user