diff --git a/invokeai/frontend/web/src/features/metadata/util/handlers.ts b/invokeai/frontend/web/src/features/metadata/util/handlers.ts index 15abe4b3e4..069668f74a 100644 --- a/invokeai/frontend/web/src/features/metadata/util/handlers.ts +++ b/invokeai/frontend/web/src/features/metadata/util/handlers.ts @@ -174,6 +174,7 @@ const buildHandlers: BuildMetadataHandlers = ({ export const handlers = { // Misc + createdBy: buildHandlers({ getLabel: () => t('metadata.createdBy'), parser: parsers.createdBy }), generationMode: buildHandlers({ getLabel: () => t('metadata.generationMode'), parser: parsers.generationMode }), // Core parameters diff --git a/invokeai/frontend/web/src/features/metadata/util/parsers.ts b/invokeai/frontend/web/src/features/metadata/util/parsers.ts index 33889b158b..c7c9616bd0 100644 --- a/invokeai/frontend/web/src/features/metadata/util/parsers.ts +++ b/invokeai/frontend/web/src/features/metadata/util/parsers.ts @@ -108,6 +108,8 @@ const getProperty = ( }); }; +const parseCreatedBy: MetadataParseFunc = (metadata) => getProperty(metadata, 'created_by', isString); + const parseGenerationMode: MetadataParseFunc = (metadata) => getProperty(metadata, 'generation_mode', isString); const parsePositivePrompt: MetadataParseFunc = (metadata) => @@ -389,6 +391,7 @@ const parseAllIPAdapters: MetadataParseFunc = async ( }; export const parsers = { + createdBy: parseCreatedBy, generationMode: parseGenerationMode, positivePrompt: parsePositivePrompt, negativePrompt: parseNegativePrompt,