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/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 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: 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: 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"