bizyengine 1.2.44__py3-none-any.whl → 1.2.46__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bizyengine/bizy_server/api_client.py +3 -0
- bizyengine/bizy_server/server.py +16 -1
- bizyengine/version.txt +1 -1
- {bizyengine-1.2.44.dist-info → bizyengine-1.2.46.dist-info}/METADATA +1 -1
- {bizyengine-1.2.44.dist-info → bizyengine-1.2.46.dist-info}/RECORD +7 -7
- {bizyengine-1.2.44.dist-info → bizyengine-1.2.46.dist-info}/WHEEL +0 -0
- {bizyengine-1.2.44.dist-info → bizyengine-1.2.46.dist-info}/top_level.txt +0 -0
|
@@ -258,6 +258,7 @@ class APIClient:
|
|
|
258
258
|
model_types: list[str] = None,
|
|
259
259
|
base_models: list[str] = None,
|
|
260
260
|
sort: str = None,
|
|
261
|
+
has_draft: bool = None,
|
|
261
262
|
request_api_key: str = None,
|
|
262
263
|
) -> tuple[dict | None, ErrorNo | None]:
|
|
263
264
|
server_url = f"{BIZYAIR_X_SERVER}/bizy_models/community"
|
|
@@ -270,6 +271,8 @@ class APIClient:
|
|
|
270
271
|
params["base_models"] = base_models
|
|
271
272
|
if sort:
|
|
272
273
|
params["sort"] = sort
|
|
274
|
+
if has_draft is not None:
|
|
275
|
+
params["has_draft"] = has_draft
|
|
273
276
|
|
|
274
277
|
headers, err = self.auth_header(api_key=request_api_key)
|
|
275
278
|
if err is not None:
|
bizyengine/bizy_server/server.py
CHANGED
|
@@ -176,6 +176,10 @@ class BizyAirServer:
|
|
|
176
176
|
model_types = json_data.get("model_types", [])
|
|
177
177
|
base_models = json_data.get("base_models", [])
|
|
178
178
|
sort = json_data.get("sort", "")
|
|
179
|
+
has_draft = json_data.get("has_draft", None)
|
|
180
|
+
if has_draft is not None:
|
|
181
|
+
has_draft = bool(has_draft)
|
|
182
|
+
|
|
179
183
|
resp, err = None, None
|
|
180
184
|
|
|
181
185
|
request_api_key, err = _get_request_api_key(request.headers)
|
|
@@ -202,6 +206,7 @@ class BizyAirServer:
|
|
|
202
206
|
model_types=model_types,
|
|
203
207
|
base_models=base_models,
|
|
204
208
|
sort=sort,
|
|
209
|
+
has_draft=has_draft,
|
|
205
210
|
request_api_key=request_api_key,
|
|
206
211
|
)
|
|
207
212
|
elif mode == "official":
|
|
@@ -455,7 +460,17 @@ class BizyAirServer:
|
|
|
455
460
|
async with session.get(url) as response:
|
|
456
461
|
if response.status != 200:
|
|
457
462
|
return ErrResponse(errnos.FAILED_TO_FETCH_WORKFLOW_JSON)
|
|
458
|
-
|
|
463
|
+
try:
|
|
464
|
+
# 先尝试直接解析JSON
|
|
465
|
+
json_content = await response.json()
|
|
466
|
+
except aiohttp.client_exceptions.ContentTypeError:
|
|
467
|
+
# 如果Content-Type不是application/json,则获取文本内容并手动解析
|
|
468
|
+
text_content = await response.text()
|
|
469
|
+
try:
|
|
470
|
+
json_content = json.loads(text_content)
|
|
471
|
+
except json.JSONDecodeError as e:
|
|
472
|
+
logging.error(f"Failed to parse JSON from response: {e}")
|
|
473
|
+
return ErrResponse(errnos.FAILED_TO_FETCH_WORKFLOW_JSON)
|
|
459
474
|
|
|
460
475
|
return OKResponse(json_content)
|
|
461
476
|
|
bizyengine/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.46
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bizyengine
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.46
|
|
4
4
|
Summary: [a/BizyAir](https://github.com/siliconflow/BizyAir) Comfy Nodes that can run in any environment.
|
|
5
5
|
Author-email: SiliconFlow <yaochi@siliconflow.cn>
|
|
6
6
|
Project-URL: Repository, https://github.com/siliconflow/BizyAir
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
bizyengine/__init__.py,sha256=GP9V-JM07fz7uv_qTB43QEA2rKdrVJxi5I7LRnn_3ZQ,914
|
|
2
|
-
bizyengine/version.txt,sha256=
|
|
2
|
+
bizyengine/version.txt,sha256=32_H8a3cQVQgF4b_XGm5nAAN2BMgmYP95gQbYLjXLok,7
|
|
3
3
|
bizyengine/bizy_server/__init__.py,sha256=SP9oSblnPo4KQyh7yOGD26YCskFAcQHAZy04nQBNRIw,200
|
|
4
|
-
bizyengine/bizy_server/api_client.py,sha256=
|
|
4
|
+
bizyengine/bizy_server/api_client.py,sha256=Z7G5IjaEqSJkF6nLLw2R3bpgBAOi5ClQiUbel6NMXmE,43932
|
|
5
5
|
bizyengine/bizy_server/errno.py,sha256=1UiFmE2U7r7hCHgsw4-p_YL0VCmTJc9NyYDEbhkanaY,16336
|
|
6
6
|
bizyengine/bizy_server/error_handler.py,sha256=MGrfO1AEqbfEgMWPL8B6Ypew_zHiQAdYGlhN9bZohrY,167
|
|
7
7
|
bizyengine/bizy_server/execution.py,sha256=ayaEf6eGJKQsVZV-1_UlGlvwwmlH7FEek31Uq-MbUjA,1644
|
|
8
8
|
bizyengine/bizy_server/profile.py,sha256=f4juAzJ73gCm0AhagYpt9WnG8HEI6xze_U96-omBLqU,3044
|
|
9
9
|
bizyengine/bizy_server/resp.py,sha256=iOFT5Ud7VJBP2uqkojJIgc3y2ifMjjEXoj0ewneL9lc,710
|
|
10
|
-
bizyengine/bizy_server/server.py,sha256=
|
|
10
|
+
bizyengine/bizy_server/server.py,sha256=7OWEA8GMrqpg4jxCvakX5zR2JukEOhKbqPRefYo6t8c,59707
|
|
11
11
|
bizyengine/bizy_server/stream_response.py,sha256=H2XHqlVRtQMhgdztAuG7l8-iV_Pm42u2x6WJ0gNVIW0,9654
|
|
12
12
|
bizyengine/bizy_server/utils.py,sha256=Kkn-AATZcdaDhg8Rg_EJW6aKqkyiSE2EYmuyOhUwXso,3863
|
|
13
13
|
bizyengine/bizyair_extras/__init__.py,sha256=zzqOeOnd6uyyopeNFPa7asfG-sI4r3SSrKJkHGF4iGI,1064
|
|
@@ -79,7 +79,7 @@ bizyengine/misc/route_sam.py,sha256=-bMIR2QalfnszipGxSxvDAHGJa5gPSrjkYPb5baaRg4,
|
|
|
79
79
|
bizyengine/misc/segment_anything.py,sha256=wNKYwlYPMszfwj23524geFZJjZaG4eye65SGaUnh77I,8941
|
|
80
80
|
bizyengine/misc/supernode.py,sha256=STN9gaxfTSErH8OiHeZa47d8z-G9S0I7fXuJvHQOBFM,4532
|
|
81
81
|
bizyengine/misc/utils.py,sha256=CKduySGSMNGlJMImHyZmN-giABY5VUaB88f6Kq-HAV0,6831
|
|
82
|
-
bizyengine-1.2.
|
|
83
|
-
bizyengine-1.2.
|
|
84
|
-
bizyengine-1.2.
|
|
85
|
-
bizyengine-1.2.
|
|
82
|
+
bizyengine-1.2.46.dist-info/METADATA,sha256=KThw17QsRFjkDMbYYLkW42PsSbx3mik21HTzG0ZKclE,675
|
|
83
|
+
bizyengine-1.2.46.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
84
|
+
bizyengine-1.2.46.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
|
|
85
|
+
bizyengine-1.2.46.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|