414 Commits

Author SHA1 Message Date
BennyKok
a2ac1adf01
Streaming support (#52)
* feat: add streaming endpoint

* fix: run issues

* feat(plugin): add dispatchAPIEventData

* fix(plugin): event

* fix: streaming event format

* fix: prompt error

* fix: node_error proxy

* chore(plugin): add log

* custom route

---------

Co-authored-by: nick <kobenkao@gmail.com>
2024-07-11 20:03:41 -07:00
Emmanuel Morales
716790e344
fix(media upload): skip when using the CD_BYPASS_UPLOAD env var (#51)
* fix(image upload): skip when using the CD_BYPASS_UPLOAD env var

* Revert "fix(image upload): skip when using the CD_BYPASS_UPLOAD env var"

This reverts commit 384eda63e6fec6977db3f9e9ba655e0db0719578.

* fix(upload outputs): skip images/gifs/files/mesh when env var is true

The env var is `CD_BYPASS_UPLOAD`.
When that variables is `True`, we don't upload the media to our comfy
deploy s3 bucket.

There are 2 steps.
1. save the file into our s3 bucket
2. save the saving into our database.

When `CD_BYPASS_UPLOAD` is True:
1. Skip the save file into our s3 bucket
2. Skip the save into our database

Previously we were skipping the step 1, but not the step 2. So that is
the reason of why we keep seeing the comfy deploy URL when fetching the
run details:

```
outputs: [
  {
    data:{
      gifs: [
        {
          url: "https://comfy-deploy-output.s3.amazonaws.com/video.mp4"
        }
      ],
      text: [
        "A text that you displayed with show text node"
      ]
    }
  }
]
```

With the new changes we don't save that into our database, and fetching
the details of a run will look like this:
```
outputs: [
  {
    data:{
      text: [
        "A text that you displayed with show text node"
      ]
    }
  }
]
```
2024-07-07 22:04:00 -07:00
nick
c6fe88bf66 new route 2024-06-15 17:29:51 -07:00
bennykok
9b24b12006 fix: file upload issues with cloudflare 2024-06-11 17:42:52 -07:00
bennykok
ff70bbdcec fix: correctly set the file content type for images, webp, jepg, png 2024-05-29 08:59:53 -07:00
haohaocreates
840bea79e8
chore(publish): Add Github Action for Publishing to Comfy Registry (#48) 2024-05-26 23:25:15 +08:00
BennyKok
0f423ce1c3
Update pyproject.toml 2024-05-26 23:21:13 +08:00
haohaocreates
2aa1a446e5
chore(pyproject): Add pyproject.toml for Custom Node Registry (#47) 2024-05-26 23:20:50 +08:00
karrix
07a7feb6ac add: slider number support 2024-05-11 14:50:46 +08:00
bennykok
c5ac1b5f94 perf: turn back on async file upload 2024-05-10 13:08:37 +09:00
bennykok
00d827e232 feat: CD_BYPASS_UPLOAD 2024-05-10 11:36:00 +09:00
karrix
697fd52349 add: bool custom node 2024-05-09 14:26:43 +08:00
karrix
6b9c431df8 add: boolean input and 3d mesh support 2024-05-09 14:25:22 +08:00
bennykok
3c508c7eec feat: redirect queue prompt to iframe event in workspace mode 2024-05-07 00:42:36 +08:00
Nick Kao
409ca6f1dd
Merge pull request #45 from NicholasKao1029/main
video node
2024-05-04 10:19:07 -07:00
nick
df391e867e video node 2024-05-04 10:14:33 -07:00
Nick Kao
c37b8be00a
Merge pull request #44 from NicholasKao1029/main
Video node
2024-04-30 12:56:30 -07:00
nick
a5a73e4209 clean up 2024-04-30 12:55:04 -07:00
nick
c7841deea2 vid node 2024-04-30 12:19:41 -07:00
nick
b0b1d64b6b external video 2024-04-27 13:32:50 -07:00
bennykok
c8dc189f99 fix: external number input 2024-04-25 18:36:24 +08:00
bennykok
cd5e4a5d01 fix: duplicated file upload 2024-04-25 16:14:14 +08:00
bennykok
95c15f095d chore: add file upload time log 2024-04-25 15:55:34 +08:00
nick
b4c27bbbea fix: external lora 2024-04-24 23:27:01 -07:00
bennykok
810aec5135 fix: empty inputs causing run issues 2024-04-25 13:15:55 +08:00
nick
c843926d6e fix: external lora takes in value outside of default 2024-04-24 17:35:09 -07:00
bennykok
797180b5c7 feat(plugin): add external image batch 2024-04-24 21:48:56 +08:00
bennykok
d00ca375a2 chore: bump comfyui json version 2024-04-23 18:44:29 +08:00
bennykok
be5d5d2b54 feat: update deploy method 2024-04-23 14:11:11 +08:00
bennykok
d592a6ba12 feat: refactor deployment code 2024-04-22 00:07:26 +08:00
bennykok
35fed9aa4d fix: failed case marked as success 2024-04-20 01:38:31 +08:00
bennykok
3b6a753472 feat: workspace_mode and window event 2024-04-19 16:01:47 +08:00
bennykok
7d2c521645 chore: clean up custom node log 2024-04-14 15:59:33 +08:00
bennykok
f363b7e871 fix: make sure to skip the temp file. 2024-04-14 00:24:21 +08:00
bennykok
1b25cfdd6c feat: add file hash cache, workflow deployment will be faster
# Conflicts:
#	.gitignore
2024-04-12 19:53:03 +08:00
bennykok
5da56b5507 chore: tweak log 2024-04-12 18:43:24 +08:00
bennykok
03d12e4099 fix!: skipping preview image as save node 2024-04-12 13:34:27 +08:00
bennykok
e66712425d fix: bump comfydeploy deps 2024-04-12 12:28:41 +08:00
bennykok
81f315e14d fix: clashes with ComfyUI manager restart 2024-03-27 13:14:57 -07:00
bennykok
7189f13263 fix: added queue_prompt from event, now input and image will not trigger queue prompt 2024-03-18 14:31:43 -07:00
bennykok
e73392ba8b fix(plugin): external checkpoint fixes 2024-03-08 14:35:44 -08:00
bennykok
1bfbd91708 feat(plugin): add models endpoints for listing out all folder paths for debug usecase 2024-03-03 16:17:43 -08:00
bennykok
a640e1eb79 fix(plugin): kill pending prompt if new streaming prompts comes in 2024-03-02 12:44:42 -08:00
bennykok
011d36edce fix(plugin): default_value to be optional in streaming image input 2024-03-02 12:22:25 -08:00
bennykok
3df549c25c feat: add ws streaming input 2024-03-02 00:47:28 -08:00
bennykok
619a9728c0 fix(plugin): prompt expansion node seed generation error 2024-02-29 19:09:33 -08:00
bennykok
410d03cd2b fix(plugin): output_id is also included in the binary data back 2024-02-29 11:40:36 -08:00
bennykok
32c6d1215b feat(plugin): streaming file type support, webp and jepg, quality settings 2024-02-28 14:28:39 -08:00
bennykok
9e79c434a9 fix(plugin): make sure number input nodes takes down to 0.01 steps and its casted to float 2024-02-28 12:09:18 -08:00
bennykok
19511e55ba fix(plugin): make sure number input nodes takes down to 0.01 steps 2024-02-28 11:59:26 -08:00