InvokeAI/invokeai/app
psychedelicious 6ab84741a0 fix(nodes): make ModelsList an enum-keyed dict
The `ModelsList` OpenAPI schema is generated as being keyed by plain strings. This means that API consumers do not know the shape of the dict. It _should_ be keyed by the `SDModelType` enum.

Unfortunately, `fastapi` does not actually handle this correctly yet; it still generates the schema with plain string keys.

Adding this anyways though in hopes that it will be resolved upstream and we can get the correct schema. Until then, I'll implement the (simple but annoying) logic on the frontend.

https://github.com/pydantic/pydantic/issues/4393
2023-05-16 15:02:58 +10:00
..
api fix(nodes): make ModelsList an enum-keyed dict 2023-05-16 15:02:58 +10:00
cli rename log to logger throughout 2023-04-29 09:43:40 -04:00
invocations adjusted regression tests to work with new SDModelTypes 2023-05-13 22:29:33 -04:00
models feat(nodes): add InfillInvocation 2023-05-11 11:55:51 +10:00
services list_models() now returns a dict of {type,{name: info}} 2023-05-15 23:44:08 -04:00
util feat(nodes): cleanup unused params, seed generation 2023-05-11 11:55:51 +10:00
api_app.py fix(nodes): fix broken docs routes 2023-05-10 08:28:17 -04:00
cli_app.py model manager now running as a service 2023-05-11 21:24:29 -04:00