mirror of
https://github.com/Comfy-Org/comfy-python-sdk.git
synced 2026-11-04 23:37:47 +00:00
[PR #117] [MERGED] fix(models): follow Comfy Router's move to /v2/models #115
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#115
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/117
Author: @mattmillerai
Created: 8/31/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @mattmillerai
Base:
main← Head:matt/router-v2-path📝 Commits (6)
6832f78chore: sync vendored Comfy Router spec from cloud@b7481bb33c9a91fix(models): follow Comfy Router's move to /v2/models (route drift left every models.run a 404)c563f41fix(retry): reconcile the run route's 409/idempotency semantics with the synced router contract43c9ad0style: rewrap a retry.py docstring line past the 100-column ruff bound1792df9style: ruff-format the new idempotency-key validatoredd069cfix: strip invalid escape sequences the docstring edits introduced📊 Changes
15 files changed (+370 additions, -115 deletions)
View changed files
📝
CHANGELOG.md(+19 -0)📝
README.md(+4 -4)📝
spec/router-openapi.yaml(+70 -19)📝
src/comfy_low/errors.py(+19 -1)📝
src/comfy_low/transport.py(+6 -6)📝
src/comfy_sdk/_core.py(+27 -0)📝
src/comfy_sdk/client.py(+1 -1)📝
src/comfy_sdk/models.py(+25 -10)📝
src/comfy_sdk/retry.py(+57 -40)📝
src/comfy_sdk/router_exceptions.py(+25 -7)📝
tests/conftest.py(+25 -7)📝
tests/test_error_mapping.py(+1 -1)📝
tests/test_models_run.py(+11 -11)📝
tests/test_models_run_retry.py(+78 -6)📝
tests/test_transport_security.py(+2 -2)📄 Description
What
The Comfy Router service moved its model routes from
/v1/models/{provider}/{model}to/v2/models/…. The SDK's hand-written path template still said/v1, so everymodels.runagainst the live service answered a bare 404 — caught by the first-ever live run of the two-SDK Router smoke suite, and reproduced with a raw curl (/v2→ 200 with a real generation, the SDK's path → 404).This PR includes the open vendored-spec sync PR (which was sitting red precisely because the synced spec moved to /v2 while the code said /v1) and flips the path template, docs, and tests to match, so the spec↔code contract check passes again.
Verified
credentials.test.tsfailures on the TS side pre-exist on the sync base unchanged — local Node environment, not this change)/v2/models/recraft/recraftv2on staging returns 200 with a generation; the/v1path 404s🤖 Generated with Claude Code
Supersedes #116 (merging this closes it). Sibling: Comfy-Org/comfy-typescript-sdk#110.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.