bizyengine 1.2.12__py3-none-any.whl → 1.2.14__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.
@@ -34,7 +34,7 @@ logging.basicConfig(level=logging.DEBUG)
34
34
 
35
35
  def _get_request_api_key(request_headers):
36
36
  if BIZYAIR_SERVER_MODE:
37
- return request_headers.get("api_key")
37
+ return request_headers.get("Authorization")
38
38
  return None
39
39
 
40
40
 
@@ -51,6 +51,9 @@ class BizyAirServer:
51
51
 
52
52
  def setup_routes(self):
53
53
  # 以下路径不论本地模式还是服务器模式都要注册
54
+ @self.prompt_server.routes.get(f"/{API_PREFIX}/server_mode")
55
+ async def get_server_mode(request):
56
+ return OKResponse({"server_mode": BIZYAIR_SERVER_MODE})
54
57
 
55
58
  @self.prompt_server.routes.get(f"/{COMMUNITY_API}/model_types")
56
59
  async def list_model_types(request):
bizyengine/version.txt CHANGED
@@ -1 +1 @@
1
- 1.2.12
1
+ 1.2.14
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bizyengine
3
- Version: 1.2.12
3
+ Version: 1.2.14
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,5 +1,5 @@
1
1
  bizyengine/__init__.py,sha256=GP9V-JM07fz7uv_qTB43QEA2rKdrVJxi5I7LRnn_3ZQ,914
2
- bizyengine/version.txt,sha256=yAj7rMwM5p-R46aEMo_IcvIhK0Iz-9gcQKB26AMuEjY,7
2
+ bizyengine/version.txt,sha256=IumIv7ISfYWEzIKfdoaMLIXhOK8y_gmJsp91gLiKAKU,7
3
3
  bizyengine/bizy_server/__init__.py,sha256=SP9oSblnPo4KQyh7yOGD26YCskFAcQHAZy04nQBNRIw,200
4
4
  bizyengine/bizy_server/api_client.py,sha256=F2kSe5FVQz5b47-QzSH5kB9S-wP921MPWrtVbbQ3nEY,43623
5
5
  bizyengine/bizy_server/errno.py,sha256=Q-U96XnZQCuPH_44Om8wnc2-Kh7qFqwLKtox27msU54,16095
@@ -7,7 +7,7 @@ bizyengine/bizy_server/error_handler.py,sha256=MGrfO1AEqbfEgMWPL8B6Ypew_zHiQAdYG
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=Oyxkd5BBfBJZT4CUb1jn7VAf_XfJkFRS6w1lipK2wFQ,51408
10
+ bizyengine/bizy_server/server.py,sha256=3Qsuv2y-ARpCyCd-cqNjQTuwWKaJvSJPk4og5a_BEDQ,51595
11
11
  bizyengine/bizy_server/stream_response.py,sha256=H2XHqlVRtQMhgdztAuG7l8-iV_Pm42u2x6WJ0gNVIW0,9654
12
12
  bizyengine/bizy_server/utils.py,sha256=C5tnMhvdtrrvwuCex3oERIGWrTWVb5dkXD1Txb5sJaE,2568
13
13
  bizyengine/bizyair_extras/__init__.py,sha256=oaKC7QzFbgJ_BWuc3o05gmIq-8ZhUB7VEzYXnlWjGv8,951
@@ -75,7 +75,7 @@ bizyengine/misc/route_sam.py,sha256=-bMIR2QalfnszipGxSxvDAHGJa5gPSrjkYPb5baaRg4,
75
75
  bizyengine/misc/segment_anything.py,sha256=m-G0PsuP6IgpdUzhEqiqzPg1_svMVH5MTivOsoVR1-Y,8940
76
76
  bizyengine/misc/supernode.py,sha256=ox1_ufOFbm4zlpPQD8TGd0JKv94vsscu1cCJOdbaZPY,4531
77
77
  bizyengine/misc/utils.py,sha256=SkU_qHU3n3dnzq68mdg_E8380ivRDVZwIb4UgnakhMM,6828
78
- bizyengine-1.2.12.dist-info/METADATA,sha256=6nWnrzcCRqo0FsVgbBuF6z4BZ3jou1AuChipUrsyeqQ,4210
79
- bizyengine-1.2.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
80
- bizyengine-1.2.12.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
81
- bizyengine-1.2.12.dist-info/RECORD,,
78
+ bizyengine-1.2.14.dist-info/METADATA,sha256=CcFG4em4r_TbocNlH1ZjwwvgdweaG3wDzbsIDtKnMvY,4210
79
+ bizyengine-1.2.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
80
+ bizyengine-1.2.14.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
81
+ bizyengine-1.2.14.dist-info/RECORD,,