Skip to content

fix:(app): Fix input type of default_value on MetadataToFloatInvocation #7702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions invokeai/app/invocations/metadata_linked.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def invoke(self, context: InvocationContext) -> IntegerOutput:
title="Metadata To Float",
tags=["metadata"],
category="metadata",
version="1.0.0",
version="1.1.0",
classification=Classification.Beta,
)
class MetadataToFloatInvocation(BaseInvocation, WithMetadata):
Expand All @@ -377,7 +377,7 @@ class MetadataToFloatInvocation(BaseInvocation, WithMetadata):
description=FieldDescriptions.metadata_item_label,
input=Input.Direct,
)
default_value: int = InputField(description="The default float to use if not found in the metadata")
default_value: float = InputField(description="The default float to use if not found in the metadata")

_validate_custom_label = model_validator(mode="after")(validate_custom_label)

Expand Down