InvokeAI/invokeai/app/api
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
..
models fix(nodes): address feedback 2023-04-26 06:29:30 +10:00
routers fix(nodes): make ModelsList an enum-keyed dict 2023-05-16 15:02:58 +10:00
dependencies.py Fix model manager initialization in web ui 2023-05-12 23:05:08 +03:00
events.py Event service will now sleep for 100ms between polls instead of 1ms, reducing CPU usage significantly 2023-04-23 21:27:02 +01:00
sockets.py all vestiges of ldm.invoke removed 2023-03-03 01:02:00 -05:00