From 49cce1eec65268a782bdf359ee36ea93d1dc3639 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 9 Aug 2023 00:13:59 +1000 Subject: [PATCH] feat: add `app_version` to image metadata --- invokeai/app/invocations/metadata.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/invokeai/app/invocations/metadata.py b/invokeai/app/invocations/metadata.py index f91e6cc4c7..4f51bf10b8 100644 --- a/invokeai/app/invocations/metadata.py +++ b/invokeai/app/invocations/metadata.py @@ -2,6 +2,7 @@ from typing import Literal, Optional, Union from pydantic import Field +from ...version import __version__ from invokeai.app.invocations.baseinvocation import ( BaseInvocation, BaseInvocationOutput, @@ -23,6 +24,7 @@ class LoRAMetadataField(BaseModelExcludeNull): class CoreMetadata(BaseModelExcludeNull): """Core generation metadata for an image generated in InvokeAI.""" + app_version: str = Field(default=__version__, description="The version of InvokeAI used to generate this image") generation_mode: str = Field( description="The generation mode that output this image", )