Skip to content

Commit 49cce1e

Browse files
feat: add app_version to image metadata
1 parent c8fbaf5 commit 49cce1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

invokeai/app/invocations/metadata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from pydantic import Field
44

5+
from ...version import __version__
56
from invokeai.app.invocations.baseinvocation import (
67
BaseInvocation,
78
BaseInvocationOutput,
@@ -23,6 +24,7 @@ class LoRAMetadataField(BaseModelExcludeNull):
2324
class CoreMetadata(BaseModelExcludeNull):
2425
"""Core generation metadata for an image generated in InvokeAI."""
2526

27+
app_version: str = Field(default=__version__, description="The version of InvokeAI used to generate this image")
2628
generation_mode: str = Field(
2729
description="The generation mode that output this image",
2830
)

0 commit comments

Comments
 (0)