mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #110] [MERGED] fix(models): follow Comfy Router's move to /v2/models #113
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
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-typescript-sdk#113
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-typescript-sdk/pull/110
Author: @mattmillerai
Created: 8/31/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @mattmillerai
Base:
main← Head:matt/router-v2-path📝 Commits (2)
6f449bachore: sync vendored Comfy Router spec from cloud@b7481bb597a287fix(models): follow Comfy Router's move to /v2/models (route drift left every models.run a 404)📊 Changes
8 files changed (+90 additions, -30 deletions)
View changed files
📝
CHANGELOG.md(+9 -0)📝
README.md(+1 -1)📝
spec/router-openapi.yaml(+74 -23)📝
src/sdk/credentials.ts(+1 -1)📝
src/sdk/models.test.ts(+1 -1)📝
src/sdk/models.ts(+1 -1)📝
src/sdk/router-spec-contract.test.ts(+2 -2)📝
test/support/router-stub-server.ts(+1 -1)📄 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 #109 (merging this closes it). Sibling: Comfy-Org/comfy-python-sdk#117.
Summary by CodeRabbit
/v2API routes.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.