diff --git a/invokeai/app/api/routers/models.py b/invokeai/app/api/routers/models.py index ae49ce5896..cc6d09f761 100644 --- a/invokeai/app/api/routers/models.py +++ b/invokeai/app/api/routers/models.py @@ -170,7 +170,7 @@ async def import_model( logger.error(str(e)) raise HTTPException(status_code=404, detail=str(e)) except InvalidModelException as e: - log.error(str(e)) + logger.error(str(e)) raise HTTPException(status_code=415) except ValueError as e: logger.error(str(e)) diff --git a/invokeai/frontend/web/src/services/api/schema.d.ts b/invokeai/frontend/web/src/services/api/schema.d.ts index 6f43efb65d..b86c233c51 100644 --- a/invokeai/frontend/web/src/services/api/schema.d.ts +++ b/invokeai/frontend/web/src/services/api/schema.d.ts @@ -5251,18 +5251,18 @@ export type components = { */ image?: components["schemas"]["ImageField"]; }; - /** - * StableDiffusionXLModelFormat - * @description An enumeration. - * @enum {string} - */ - StableDiffusionXLModelFormat: "checkpoint" | "diffusers"; /** * StableDiffusion2ModelFormat * @description An enumeration. * @enum {string} */ StableDiffusion2ModelFormat: "checkpoint" | "diffusers"; + /** + * StableDiffusionXLModelFormat + * @description An enumeration. + * @enum {string} + */ + StableDiffusionXLModelFormat: "checkpoint" | "diffusers"; /** * StableDiffusion1ModelFormat * @description An enumeration. @@ -5725,6 +5725,8 @@ export type operations = { 404: never; /** @description There is already a model corresponding to this path or repo_id */ 409: never; + /** @description Unrecognized file/folder format */ + 415: never; /** @description Validation Error */ 422: { content: {