mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge branch 'sdxl-support' of https://github.com/invoke-ai/InvokeAI into sdxl-support
This commit is contained in:
commit
a61540859e
@ -128,6 +128,7 @@ async def update_model(
|
|||||||
responses= {
|
responses= {
|
||||||
201: {"description" : "The model imported successfully"},
|
201: {"description" : "The model imported successfully"},
|
||||||
404: {"description" : "The model could not be found"},
|
404: {"description" : "The model could not be found"},
|
||||||
|
415: {"description" : "Unrecognized file/folder format"},
|
||||||
424: {"description" : "The model appeared to import successfully, but could not be found in the model manager"},
|
424: {"description" : "The model appeared to import successfully, but could not be found in the model manager"},
|
||||||
409: {"description" : "There is already a model corresponding to this path or repo_id"},
|
409: {"description" : "There is already a model corresponding to this path or repo_id"},
|
||||||
},
|
},
|
||||||
@ -154,7 +155,7 @@ async def import_model(
|
|||||||
|
|
||||||
if not info:
|
if not info:
|
||||||
logger.error("Import failed")
|
logger.error("Import failed")
|
||||||
raise HTTPException(status_code=424)
|
raise HTTPException(status_code=415)
|
||||||
|
|
||||||
logger.info(f'Successfully imported {location}, got {info}')
|
logger.info(f'Successfully imported {location}, got {info}')
|
||||||
model_raw = ApiDependencies.invoker.services.model_manager.list_model(
|
model_raw = ApiDependencies.invoker.services.model_manager.list_model(
|
||||||
|
Loading…
Reference in New Issue
Block a user