From e320434504eefae514525dac355dbe4a9571a68a Mon Sep 17 00:00:00 2001 From: Sirshendu Ganguly Date: Mon, 13 Apr 2026 20:19:04 +0530 Subject: [PATCH 1/2] Added support for Inputs in textInference --- runware/base.py | 6 +++++- runware/types.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/runware/base.py b/runware/base.py index 1ae23f8..fcda2b0 100644 --- a/runware/base.py +++ b/runware/base.py @@ -2470,9 +2470,13 @@ async def _requestText(self, requestText: ITextInference) -> Union[List[IText], requestText.inputs = inputs if inputs.images: - inputs.images = await process_image(inputs.images) + inputs.images = await self._process_media_list(inputs.images) + if inputs.videos: + inputs.videos = await self._process_media_list(inputs.videos) request_object = self._buildTextRequest(requestText) + import json + print(json.dumps(request_object, indent=4)) if requestText.webhookURL: request_object["webhookURL"] = requestText.webhookURL diff --git a/runware/types.py b/runware/types.py index 326c7b7..0e0d254 100644 --- a/runware/types.py +++ b/runware/types.py @@ -1028,6 +1028,7 @@ def __post_init__(self): @dataclass class ITextInputs(SerializableMixin): images: Optional[List[Union[str, File]]] = None + videos: Optional[List[Union[str, File]]] = None @property def request_key(self) -> str: From 41aa279dcc958faea350e94546d6f7a4aa054192 Mon Sep 17 00:00:00 2001 From: Sirshendu Ganguly Date: Mon, 13 Apr 2026 20:20:42 +0530 Subject: [PATCH 2/2] Removed unwanted print statements --- runware/base.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/runware/base.py b/runware/base.py index fcda2b0..7f2bd6f 100644 --- a/runware/base.py +++ b/runware/base.py @@ -2475,8 +2475,6 @@ async def _requestText(self, requestText: ITextInference) -> Union[List[IText], inputs.videos = await self._process_media_list(inputs.videos) request_object = self._buildTextRequest(requestText) - import json - print(json.dumps(request_object, indent=4)) if requestText.webhookURL: request_object["webhookURL"] = requestText.webhookURL