default to no filter in list_models()

This commit is contained in:
Lincoln Stein 2023-05-15 23:52:29 -04:00
parent 4fe94a9315
commit eea0d6f7bc

View File

@ -70,7 +70,7 @@ class ModelsList(BaseModel):
)
async def list_models(
model_type: SDModelType = Query(
default=SDModelType.Diffusers, description="The type of model to get"
default=None, description="The type of model to get"
),
) -> ModelsList:
"""Gets a list of models"""