mirror of
https://github.com/Comfy-Org/comfy-python-sdk.git
synced 2026-11-04 23:37:47 +00:00
[PR #20] [MERGED] feat: point Comfy Cloud at cloud.comfy.org and default base_url to it #28
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
effort:medium
effort:small
effort:small
effort:trivial
priority:nice-to-have
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-python-sdk#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-python-sdk/pull/20
Author: @wei-hai
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @wei-hai
Base:
main← Head:wei/cloud-comfy-org-base-url📝 Commits (3)
9459a7ddocs: point Comfy Cloud at cloud.comfy.org6f0b2aafeat: default base_url to Comfy Cloud, and split the doc examplesf68b52ctest: close the clients in the default base_url tests📊 Changes
7 files changed (+51 additions, -12 deletions)
View changed files
📝
README.md(+6 -5)📝
spec/openapi.yaml(+1 -1)📝
src/comfy_sdk/__init__.py(+3 -2)📝
src/comfy_sdk/client.py(+6 -2)➕
tests/test_default_base_url.py(+33 -0)📝
tests/test_follow_up_links.py(+1 -1)📝
tests/test_user_agent.py(+1 -1)📄 Description
Comfy Cloud serves
/api/v2oncloud.comfy.org.api.comfy.orgkeeps serving the node registry, so this is a new hostname for the cloud API rather than a domain rename.Two changes
1. Point at the new host —
spec/openapi.yamlservers:, README, the module docstring, and test fixtures.2. Default
base_urlto it. It was a required argument, so every caller hardcoded a host — which is why a server-side move otherwise forces every caller to edit their own code. Now:Applies to both
ComfyandAsyncComfy.COMFY_CLOUD_BASE_URLis exported for callers who want the value.Backward compatible — the positional form every existing caller uses is untouched, and an explicit
base_urlstill wins.Verification
pytest— 102 passing, 3 skipped (5 new, covering both clients and both forms, asserting resolved request URLs rather than private attributes).ruffandmypyclean.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.