InvokeAI/invokeai/app/util
psychedelicious 2f9ebdec69 fix(app): openapi schema generation
Some tech debt related to dynamic pydantic schemas for invocations became problematic. Including the invocations and results in the event schemas was breaking pydantic's handling of ref schemas. I don't really understand why - I think it's a pydantic bug in a remote edge case that we are hitting.

After many failed attempts I landed on this implementation, which is actually much tidier than what was in there before.

- Create pydantic-enabled types for `AnyInvocation` and `AnyInvocationOutput` and use these in place of the janky dynamic unions. Actually, they are kinda the same, but better encapsulated. Use these in `Graph`, `GraphExecutionState`, `InvocationEventBase` and `InvocationCompleteEvent`.
- Revise the custom openapi function to work with the new models.
- Split out the custom openapi function to a separate file. Add a `post_transform` callback so consumers can customize the output schema.
- Update makefile scripts.
2024-05-30 12:03:03 +10:00
..
__init__.py feat(nodes): add list_images endpoint 2023-04-09 13:48:44 +10:00
controlnet_utils.py tidy(backend): clean up controlnet_utils 2024-04-25 13:20:09 +10:00
custom_openapi.py fix(app): openapi schema generation 2024-05-30 12:03:03 +10:00
download_with_progress.py feat(mm): download upscaling & lama models as they are requested 2024-03-20 15:05:25 +11:00
metaenum.py feat(nodes): address feedback 2023-05-24 11:30:47 -04:00
misc.py fix a number of typechecking errors 2024-03-01 10:42:33 +11:00
model_exclude_null.py feat(api): chore: pydantic & fastapi upgrade 2023-10-17 14:59:25 +11:00
profiler.py feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
step_callback.py fix(events): fix denoise progress percentage 2024-05-27 09:06:02 +10:00
suppress_output.py feat: add SuppressOutput util 2024-03-20 15:05:25 +11:00
thumbnails.py isort wip 2023-09-12 13:01:58 -04:00
ti_utils.py refactor(nodes): model identifiers 2024-03-07 10:56:59 +11:00