Skip to content

v0.1.7

Choose a tag to compare

@wei-hai wei-hai released this 12 Aug 04:05
· 61 commits to main since this release
Immutable release. Only release title and notes can be modified.
8bfbd3c

Breaking: the base URL moves from a constructor argument to COMFY_BASE_URL

Comfy() / AsyncComfy() target Comfy Cloud by default. To point the client at another deployment, set the COMFY_BASE_URL environment variable — an arbitrary endpoint is no longer part of the call surface.

- client = Comfy("https://my-deployment.example.com", api_key)
+ # COMFY_BASE_URL=https://my-deployment.example.com
+ client = Comfy(api_key=api_key)

api_key is keyword-only now, so the old positional form raises TypeError rather than quietly reading a URL as a key.

The variable is read on each construction (not at import), must be an http(s) URL, and unset-or-blank means Comfy Cloud.

comfy_low, the documented escape hatch the clients are built on, still takes a base URL directly and is unchanged.

There is no 0.1.6 on PyPI — that number was consumed by a release-pipeline failure and never published. This is the first release containing the change above; @comfyorg/sdk ships the same change as 0.1.6.

Full changelog: v0.1.5...v0.1.7