From 7a0e765d84e5e88967dce24c8b147a17d2aff2b6 Mon Sep 17 00:00:00 2001 From: Drsanwujiang Date: Sun, 7 Jul 2024 23:15:03 +0800 Subject: [PATCH 1/4] Update script --- deploy.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/deploy.sh b/deploy.sh index 131520b..31e2a6e 100644 --- a/deploy.sh +++ b/deploy.sh @@ -23,21 +23,21 @@ port="9500" # Parse arguments while [[ $# -gt 0 ]]; do - case "$1" in - --host) - host="$2" - shift - ;; - --port) - port="$2" - shift - ;; - --*) - error "Illegal option $1" - ;; - esac - - shift $(( $# > 0 ? 1 : 0 )) + case "$1" in + --host) + host="$2" + shift + ;; + --port) + port="$2" + shift + ;; + --*) + error "Illegal option $1" + ;; + esac + + shift $(( $# > 0 ? 1 : 0 )) done # Check Python From c8b43aad3c382228f0a85910ff03a88977e5a427 Mon Sep 17 00:00:00 2001 From: Drsanwujiang Date: Thu, 11 Jul 2024 14:09:12 +0800 Subject: [PATCH 2/4] Update plugin Paint: fix bug --- plugin/dicerobot/order/paint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/dicerobot/order/paint.py b/plugin/dicerobot/order/paint.py index c49a48f..4c95f3a 100644 --- a/plugin/dicerobot/order/paint.py +++ b/plugin/dicerobot/order/paint.py @@ -53,7 +53,7 @@ def __call__(self) -> None: "Authorization": f"Bearer {api_key}" }, json=request.model_dump(exclude_none=True), - timeout=30 + timeout=60 ).json() try: From 6abfcd24463f0b3b410a8d98215c7cc37515919d Mon Sep 17 00:00:00 2001 From: Drsanwujiang Date: Thu, 11 Jul 2024 14:09:28 +0800 Subject: [PATCH 3/4] Update plugin Stable Diffusion: fix bug --- plugin/dicerobot/order/stable_diffusion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/dicerobot/order/stable_diffusion.py b/plugin/dicerobot/order/stable_diffusion.py index bed9c58..669c517 100644 --- a/plugin/dicerobot/order/stable_diffusion.py +++ b/plugin/dicerobot/order/stable_diffusion.py @@ -49,7 +49,7 @@ def __call__(self) -> None: "Authorization": f"Bearer {api_key}" }, files={key: (None, value) for key, value in request.model_dump(exclude_none=True).items()}, - timeout=30 + timeout=60 ).json() try: From 81ffa241ae1fa8b858d6db6958900d5db0fdfca0 Mon Sep 17 00:00:00 2001 From: Drsanwujiang Date: Thu, 11 Jul 2024 14:10:38 +0800 Subject: [PATCH 4/4] Update to 4.2.2 --- app/version.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/version.py b/app/version.py index f045f1a..98aafdc 100644 --- a/app/version.py +++ b/app/version.py @@ -1 +1 @@ -VERSION = "4.2.1" +VERSION = "4.2.2" diff --git a/pyproject.toml b/pyproject.toml index d1472f2..d288286 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dicerobot" -version = "4.2.1" +version = "4.2.2" description = "A TRPG assistant bot" authors = ["Drsanwujiang "] license = "MIT"