From f62b7c34f2e1be6d544ceda380cae0950be91d94 Mon Sep 17 00:00:00 2001 From: Renato Sortino Date: Mon, 23 Feb 2026 12:02:44 +0100 Subject: [PATCH] feat: initialize inputs in IImageInference post-init --- runware/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runware/types.py b/runware/types.py index 2073ae2..d428c6b 100644 --- a/runware/types.py +++ b/runware/types.py @@ -889,6 +889,9 @@ class IImageInference: webhookURL: Optional[str] = None ttl: Optional[int] = None # time-to-live (TTL) in seconds, only applies when outputType is "URL" + def __post_init__(self): + if self.inputs is not None and not isinstance(self.inputs, IInputs): + self.inputs = IInputs(**self.inputs) @dataclass class IImageCaption: