From d571366fb426e383365149afdfdaf4a5f11339bd Mon Sep 17 00:00:00 2001 From: sugarkwork Date: Tue, 30 Apr 2024 09:11:12 +0900 Subject: [PATCH 1/5] fix --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 6d6f80b..fc9d2a7 100644 --- a/nodes.py +++ b/nodes.py @@ -78,7 +78,7 @@ class SimpleCohereNode: return (response, ) if not response: - response = self.client.chat( + response = cohere_client.chat( chat_history=[ {"role": "SYSTEM", "message": str(system)}, ], From 815b3a0552a100d8d1ffc1596745e89cb65447b9 Mon Sep 17 00:00:00 2001 From: sugarkwork Date: Tue, 30 Apr 2024 10:57:16 +0900 Subject: [PATCH 2/5] fix --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 68bc17f..e521c10 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,4 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +cache.pkl From 913d76eba55d2dd002ff1470f3c5605df90041ca Mon Sep 17 00:00:00 2001 From: sugarkwork <98699377+sugarkwork@users.noreply.github.com> Date: Thu, 16 May 2024 09:13:17 +0900 Subject: [PATCH 3/5] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 582ad64..3068f77 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,6 @@ ComfyUI の起動 bat ファイルを編集して、以下のように Cohere .\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build pause +# SimpleCohereNode + +![image](https://github.com/sugarkwork/comfyui_cohere/assets/98699377/aaf17fc2-0109-48ca-8884-9a75638482e9) From 51e9313be5ad6d260bc247012c94a5ae37dc0595 Mon Sep 17 00:00:00 2001 From: snomiao Date: Fri, 14 Jun 2024 13:02:16 +0000 Subject: [PATCH 4/5] chore(pyproject): Add pyproject.toml for Custom Node Registry --- pyproject.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d901a6f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,15 @@ +[project] +name = "comfyui_cohere" +description = "This is a node for using cohere (Command R+) from ComfyUI. You need to edit the startup .bat file of ComfyUI and describe the API key obtained from Cohere as follows." +version = "1.0.0" +license = "LICENSE" +dependencies = ["cohere"] + +[project.urls] +Repository = "https://github.com/sugarkwork/comfyui_cohere" +# Used by Comfy Registry https://comfyregistry.org + +[tool.comfy] +PublisherId = "" +DisplayName = "comfyui_cohere" +Icon = "" From 313982ef692718bf9aa4d48471d82a70cabc07a4 Mon Sep 17 00:00:00 2001 From: snomiao Date: Fri, 14 Jun 2024 13:59:25 +0000 Subject: [PATCH 5/5] chore(publish): Add Github Action for Publishing to Comfy Registry --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a4fd892 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + - master + paths: + - "pyproject.toml" + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@main + with: + ## Add your own personal access token to your Github Repository secrets and reference it here. + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}