Skip to content

Commit

Permalink
Merge pull request #57 from drsanwujiang/dev
Browse files Browse the repository at this point in the history
Update to 4.2.2
  • Loading branch information
drsanwujiang authored Jul 11, 2024
2 parents 6350215 + 81ffa24 commit 147f9ee
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "4.2.1"
VERSION = "4.2.2"
30 changes: 15 additions & 15 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugin/dicerobot/order/paint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion plugin/dicerobot/order/stable_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dicerobot"
version = "4.2.1"
version = "4.2.2"
description = "A TRPG assistant bot"
authors = ["Drsanwujiang <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 147f9ee

Please sign in to comment.