Skip to content

Commit d185474

Browse files
committed
## Python SDK Changes Detected:
* `comfy_deploy.run.get()`: * `request.queue_position` **Added** * `response` **Changed** **Breaking** ⚠️ * `comfy_deploy.run.deployment.queue()`: * `request.flags` **Added**
1 parent fc71e90 commit d185474

32 files changed

Lines changed: 171 additions & 288 deletions

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
**/__pycache__/
2+
**/.speakeasy/temp/
3+
**/.speakeasy/logs/
4+
.env
5+
.env.local
16
.speakeasy/reports
27
README-PYPI.md
38
.venv/

.speakeasy/gen.lock

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 2c1d440e-25e4-46e2-a435-ebd1f72a7373
33
management:
4-
docChecksum: a12e94397f17ad377cd82287f65fc0dd
4+
docChecksum: abba088357b88be5b8ae2f2deae39ac4
55
docVersion: V2
66
speakeasyVersion: 1.523.2
77
generationVersion: 2.560.1
8-
releaseVersion: 0.7.0
9-
configChecksum: efd69310efe6f150238bffd349771dd8
8+
releaseVersion: 0.8.1
9+
configChecksum: a894d341837bb9d6f4cf388e33c951f4
1010
repoURL: https://github.com/comfy-deploy/comfy-deploy-python.git
1111
installationURL: https://github.com/comfy-deploy/comfy-deploy-python.git
1212
published: true
@@ -31,7 +31,6 @@ features:
3131
retries: 3.0.2
3232
sdkHooks: 1.0.1
3333
unions: 3.0.4
34-
webhooks: 2.0.0
3534
generatedFiles:
3635
- .devcontainer/README.md
3736
- .devcontainer/devcontainer.json
@@ -52,17 +51,13 @@ generatedFiles:
5251
- docs/models/components/validationerror.md
5352
- docs/models/components/workflowrunmodel.md
5453
- docs/models/components/workflowrunoutputmodel.md
55-
- docs/models/components/workflowrunstatus.md
56-
- docs/models/components/workflowrunwebhookbody.md
57-
- docs/models/components/workflowrunwebhookresponse.md
5854
- docs/models/errors/httpvalidationerror.md
5955
- docs/models/operations/cancelrunrunrunidcancelpostrequest.md
6056
- docs/models/operations/cancelrunrunrunidcancelpostresponse.md
6157
- docs/models/operations/getrunrunrunidgetrequest.md
6258
- docs/models/operations/getrunrunrunidgetresponse.md
6359
- docs/models/operations/queuedeploymentrunrundeploymentqueuepostresponse.md
6460
- docs/models/utils/retryconfig.md
65-
- docs/models/webhooks/runupdaterequestbodywebhookpostresponse.md
6661
- docs/sdks/comfydeploy/README.md
6762
- docs/sdks/deployment/README.md
6863
- docs/sdks/run/README.md
@@ -90,18 +85,13 @@ generatedFiles:
9085
- src/comfydeploy/models/components/validationerror.py
9186
- src/comfydeploy/models/components/workflowrunmodel.py
9287
- src/comfydeploy/models/components/workflowrunoutputmodel.py
93-
- src/comfydeploy/models/components/workflowrunstatus.py
94-
- src/comfydeploy/models/components/workflowrunwebhookbody.py
95-
- src/comfydeploy/models/components/workflowrunwebhookresponse.py
9688
- src/comfydeploy/models/errors/__init__.py
9789
- src/comfydeploy/models/errors/httpvalidationerror.py
9890
- src/comfydeploy/models/errors/sdkerror.py
9991
- src/comfydeploy/models/operations/__init__.py
10092
- src/comfydeploy/models/operations/cancel_run_run_run_id_cancel_post.py
10193
- src/comfydeploy/models/operations/get_run_run_run_id_get.py
10294
- src/comfydeploy/models/operations/queue_deployment_run_run_deployment_queue_post.py
103-
- src/comfydeploy/models/webhooks/__init__.py
104-
- src/comfydeploy/models/webhooks/run_update_request_body_webhook_post.py
10595
- src/comfydeploy/py.typed
10696
- src/comfydeploy/run.py
10797
- src/comfydeploy/sdk.py
@@ -129,9 +119,11 @@ examples:
129119
parameters:
130120
path:
131121
run_id: "b888f774-3e7c-4135-a18c-6b985523c4bc"
122+
query:
123+
queue_position: false
132124
responses:
133125
"200":
134-
application/json: {"id": "e50f7622-81da-484b-9c66-1c8a99c6b71b", "workflow_version_id": "ecd62b8f-7112-4aaf-90ab-4e43b4cca371", "workflow_inputs": "<value>", "workflow_id": "f620807a-a1f8-4cf0-95d8-9d58ee381f6b", "workflow_api": "<value>", "machine_id": "b885c09d-541c-4293-b683-64a15f8d7e75", "origin": "<value>", "status": "<value>", "created_at": "2024-02-02T12:01:38.576Z", "updated_at": "2023-04-16T15:25:27.950Z", "gpu_event_id": "<id>", "gpu": "<value>", "machine_version": "<value>", "machine_type": "<value>", "modal_function_call_id": "<id>", "user_id": "<id>", "org_id": "<id>", "live_status": "<value>", "progress": 0, "is_realtime": false, "webhook": "<value>", "webhook_status": "<value>", "webhook_intermediate_status": false, "number": 494415, "duration": 6188.69, "cold_start_duration": 9131.15, "cold_start_duration_total": 1865.92, "run_duration": 3787.04}
126+
application/json: {"id": "e50f7622-81da-484b-9c66-1c8a99c6b71b", "workflow_version_id": "ecd62b8f-7112-4aaf-90ab-4e43b4cca371", "workflow_inputs": "<value>", "workflow_id": "f620807a-a1f8-4cf0-95d8-9d58ee381f6b", "machine_id": "b885c09d-541c-4293-b683-64a15f8d7e75", "origin": "<value>", "status": "<value>", "created_at": "2024-02-02T12:01:38.576Z", "updated_at": "2023-04-16T15:25:27.950Z", "gpu_event_id": "<id>", "gpu": "<value>", "machine_version": "<value>", "machine_type": "<value>", "modal_function_call_id": "<id>", "user_id": "<id>", "org_id": "<id>", "live_status": "<value>", "progress": 0, "is_realtime": false, "webhook": "<value>", "webhook_status": "<value>", "webhook_intermediate_status": false}
135127
"422":
136128
application/json: {}
137129
cancel_run_run__run_id__cancel_post:
@@ -147,20 +139,12 @@ examples:
147139
queue_deployment_run_run_deployment_queue_post:
148140
speakeasy-default-queue-deployment-run-run-deployment-queue-post:
149141
requestBody:
150-
application/json: {"inputs": {"prompt": "A beautiful landscape", "seed": 42}, "webhook": "https://myapp.com/webhook", "webhook_intermediate_status": true, "deployment_id": "15e79589-12c9-453c-a41a-348fdd7de957"}
142+
application/json: {"inputs": {"prompt": "A beautiful landscape", "seed": 42}, "webhook": "https://myapp.com/webhook", "webhook_intermediate_status": true, "flags": ["runpod_v2"], "deployment_id": "15e79589-12c9-453c-a41a-348fdd7de957"}
151143
responses:
152144
"200":
153145
application/json: {"run_id": "03ec31b2-4d0d-4329-88ff-ac74003017b7"}
154146
"422":
155147
application/json: {}
156-
run_update__request_body__webhook__post:
157-
speakeasy-default-run-update-request-body-webhook-post:
158-
requestBody:
159-
application/json: {"run_id": "<id>", "status": "success", "live_status": "<value>", "progress": 0}
160-
responses:
161-
"200":
162-
application/json: {"status": "<value>"}
163-
"422":
164-
application/json: {}
165148
examplesVersion: 1.0.0
166149
generatedTests: {}
150+
releaseNotes: "## Python SDK Changes Detected:\n* `comfy_deploy.run.get()`: \n * `request.queue_position` **Added**\n * `response` **Changed** **Breaking** :warning:\n* `comfy_deploy.run.deployment.queue()`: \n * `request.flags` **Added**\n"

.speakeasy/gen.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,34 @@ generation:
77
maintainOpenAPIOrder: true
88
usageSnippets:
99
optionalPropertyRendering: withExample
10+
sdkInitStyle: constructor
1011
useClassNamesForArrayFields: true
1112
fixes:
1213
nameResolutionDec2023: true
1314
nameResolutionFeb2025: false
1415
parameterOrderingFeb2024: true
1516
requestResponseComponentNamesFeb2024: true
1617
securityFeb2025: false
18+
sharedErrorComponentsApr2025: false
1719
auth:
1820
oAuth2ClientCredentialsEnabled: false
1921
oAuth2PasswordEnabled: false
22+
requestBodyFieldName: ""
23+
schemas:
24+
allOfMergeStrategy: shallowMerge
2025
python:
21-
version: 0.7.0
26+
version: 0.8.1
2227
additionalDependencies:
2328
dev: {}
2429
main: {}
30+
allowedRedefinedBuiltins:
31+
- id
32+
- object
33+
asyncMode: both
2534
author: Speakeasy
2635
authors:
2736
- Speakeasy
37+
baseErrorName: ComfyDeployError
2838
clientServerStatusCodesAsErrors: true
2939
defaultErrorName: SDKError
3040
description: Python Client SDK Generated by Speakeasy
@@ -44,11 +54,16 @@ python:
4454
shared: models/components
4555
webhooks: models/webhooks
4656
inputModelSuffix: input
57+
legacyPyright: true
4758
maxMethodParams: 4
4859
methodArguments: require-security-and-request
60+
moduleName: ""
4961
outputModelSuffix: output
62+
packageManager: poetry
5063
packageName: comfydeploy
5164
projectUrls: {}
65+
pytestFilterWarnings: []
5266
pytestTimeout: 0
5367
responseFormat: envelope-http
68+
sseFlatResponse: false
5469
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.523.2
22
sources:
33
comfydeploy-api:
44
sourceNamespace: comfydeploy-api
5-
sourceRevisionDigest: sha256:88643a4de11cc9a90c5da0de3ecf6526f61237a30189707b7a6abf6192ad4cb2
6-
sourceBlobDigest: sha256:df07cbe29241948042d8f8f0dc662107805290842e5a6ed7623ccf270744fba1
5+
sourceRevisionDigest: sha256:714a7419a7097486aaac00f3c90d7a274b9fd9cc0938074eba840e62f664f4ea
6+
sourceBlobDigest: sha256:bcd062f7146f2983617b41db52c5cd8b2c56940f05a901904a1d9e6a72fb109c
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1743002572
9+
- speakeasy-sdk-regen-1758759186
1010
- V2
1111
targets:
1212
comfy-deploy:
1313
source: comfydeploy-api
1414
sourceNamespace: comfydeploy-api
15-
sourceRevisionDigest: sha256:88643a4de11cc9a90c5da0de3ecf6526f61237a30189707b7a6abf6192ad4cb2
16-
sourceBlobDigest: sha256:df07cbe29241948042d8f8f0dc662107805290842e5a6ed7623ccf270744fba1
15+
sourceRevisionDigest: sha256:714a7419a7097486aaac00f3c90d7a274b9fd9cc0938074eba840e62f664f4ea
16+
sourceBlobDigest: sha256:bcd062f7146f2983617b41db52c5cd8b2c56940f05a901904a1d9e6a72fb109c
1717
codeSamplesNamespace: code-samples-python-comfy-deploy
18-
codeSamplesRevisionDigest: sha256:adf2885110445ea05f59d31a8a76e34c61bc6c030a258fc1ef5ae0c8836be768
18+
codeSamplesRevisionDigest: sha256:03180e7ee8d771e61734b781bf9048fe66c14158ea82318ee7cfff96859a241f
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,14 @@ Based on:
188188
### Generated
189189
- [python v0.7.0] .
190190
### Releases
191-
- [PyPI v0.7.0] https://pypi.org/project/comfydeploy/0.7.0 - .
191+
- [PyPI v0.7.0] https://pypi.org/project/comfydeploy/0.7.0 - .
192+
193+
## 2025-11-14 00:13:49
194+
### Changes
195+
Based on:
196+
- OpenAPI Doc
197+
- Speakeasy CLI 1.523.2 (2.560.1) https://github.com/speakeasy-api/speakeasy
198+
### Generated
199+
- [python v0.8.1] .
200+
### Releases
201+
- [PyPI v0.8.1] https://pypi.org/project/comfydeploy/0.8.1 - .

codeSamples.yaml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ actions:
2222
"seed": 42,
2323
},
2424
"webhook": "https://myapp.com/webhook",
25+
"flags": [
26+
"runpod_v2",
27+
],
2528
"deployment_id": "15e79589-12c9-453c-a41a-348fdd7de957",
2629
})
2730
@@ -67,25 +70,3 @@ actions:
6770
6871
# Handle response
6972
print(res.any)
70-
- target: $["paths"]["{$request.body#/webhook}"]["post"]
71-
update:
72-
x-codeSamples:
73-
- lang: python
74-
label: SDK (Python)
75-
source: |-
76-
from comfydeploy import ComfyDeploy
77-
from comfydeploy.models import components
78-
79-
80-
with ComfyDeploy() as comfy_deploy:
81-
82-
res = comfy_deploy.callbacks.run_update_request_body_webhook_post(request={
83-
"run_id": "<id>",
84-
"status": components.WorkflowRunStatus.SUCCESS,
85-
"live_status": "<value>",
86-
})
87-
88-
assert res.workflow_run_webhook_response is not None
89-
90-
# Handle response
91-
print(res.workflow_run_webhook_response)

docs/models/components/deploymentrunrequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
| `inputs` | Dict[str, [components.Inputs](../../models/components/inputs.md)] | :heavy_minus_sign: | The inputs to the workflow | {<br/>"prompt": "A beautiful landscape",<br/>"seed": 42<br/>} |
1010
| `webhook` | *Optional[str]* | :heavy_minus_sign: | N/A | |
1111
| `webhook_intermediate_status` | *Optional[bool]* | :heavy_minus_sign: | N/A | true |
12-
| `gpu` | [Optional[components.Gpu]](../../models/components/gpu.md) | :heavy_minus_sign: | The GPU to override the machine's default GPU | |
12+
| `gpu` | [Optional[components.Gpu]](../../models/components/gpu.md) | :heavy_minus_sign: | The GPU to override the machine's default GPU | |
13+
| `flags` | List[*str*] | :heavy_minus_sign: | Array of flag strings | [<br/>"runpod_v2"<br/>] |

docs/models/components/gpu.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ The GPU to override the machine's default GPU
77

88
| Name | Value |
99
| ------------ | ------------ |
10+
| `CPU` | CPU |
1011
| `T4` | T4 |
1112
| `L4` | L4 |
1213
| `A10_G` | A10G |
1314
| `L40_S` | L40S |
1415
| `A100` | A100 |
1516
| `A100_80_GB` | A100-80GB |
16-
| `H100` | H100 |
17+
| `H100` | H100 |
18+
| `H200` | H200 |
19+
| `B200` | B200 |

0 commit comments

Comments
 (0)