diff --git a/pyproject.toml b/pyproject.toml index a4a778b..6e38ef6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ComfyUI-Runware" -version = "2.0.1" +version = "2.0.2" description = "Every Runware model as a ComfyUI node: image, video, audio, 3D, and text generation in the cloud." license = "MIT" requires-python = ">=3.11" diff --git a/requirements.txt b/requirements.txt index f54e379..7321a68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -runware-sdk>=1.5.0 +runware-sdk>=1.6.5 pillow soundfile diff --git a/runware_nodes.py b/runware_nodes.py index d3fcaa2..326541c 100644 --- a/runware_nodes.py +++ b/runware_nodes.py @@ -598,9 +598,9 @@ async def run_upload(image_uri: str) -> str: if not api_key: raise RuntimeError("No Runware API key. Set RUNWARE_API_KEY or run `runware auth login`.") async with Runware(api_key=api_key, transport="rest", user_agent_prefix=USER_AGENT_PREFIX) as client: - for r in await client.image_upload({"image": image_uri}): - if isinstance(r, dict) and r.get("imageUUID"): - return str(r["imageUUID"]) + for r in await client.media_storage({"operation": "upload", "media": image_uri}): + if isinstance(r, dict) and r.get("mediaUUID"): + return str(r["mediaUUID"]) return ""