Browse Source

Merge pull request #9598 from Mistrick/patch

fix: correct max seed for comfyui
Timothy Jaeryang Baek 2 tháng trước cách đây
mục cha
commit
4ed544a4b5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backend/open_webui/utils/images/comfyui.py

+ 1 - 1
backend/open_webui/utils/images/comfyui.py

@@ -161,7 +161,7 @@ async def comfyui_generate_image(
                 seed = (
                     payload.seed
                     if payload.seed
-                    else random.randint(0, 18446744073709551614)
+                    else random.randint(0, 1125899906842624)
                 )
                 for node_id in node.node_ids:
                     workflow[node_id]["inputs"][node.key] = seed