bizyengine 1.2.43__py3-none-any.whl → 1.2.44__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.
@@ -4,6 +4,7 @@ import json
4
4
  import logging
5
5
  import os
6
6
  import random
7
+ import re
7
8
  import shutil
8
9
  import threading
9
10
  import time
@@ -760,7 +761,13 @@ class BizyAirServer:
760
761
  all_models = await self.api_client.fetch_all_llm_models(
761
762
  request_api_key=request_api_key
762
763
  )
763
- llm_models = [model for model in all_models if "vl" not in model.lower()]
764
+ llm_models = [
765
+ model
766
+ for model in all_models
767
+ if not (
768
+ re.search(r"\d+(\.\d+)?v", model.lower()) or "vl" in model.lower()
769
+ )
770
+ ]
764
771
  llm_models.append("No LLM Enhancement")
765
772
  return aiohttp.web.json_response(llm_models)
766
773
 
@@ -773,7 +780,11 @@ class BizyAirServer:
773
780
  all_models = await self.api_client.fetch_all_llm_models(
774
781
  request_api_key=request_api_key
775
782
  )
776
- vlm_models = [model for model in all_models if "vl" in model.lower()]
783
+ vlm_models = [
784
+ model
785
+ for model in all_models
786
+ if re.search(r"\d+(\.\d+)?v", model.lower()) or "vl" in model.lower()
787
+ ]
777
788
  vlm_models.append("No VLM Enhancement")
778
789
  return aiohttp.web.json_response(vlm_models)
779
790
 
bizyengine/misc/utils.py CHANGED
@@ -185,7 +185,7 @@ def get_vlm_response(
185
185
 
186
186
  messages = [
187
187
  {
188
- "role": "user",
188
+ "role": "system",
189
189
  "content": [{"type": "text", "text": system_prompt}],
190
190
  }, # 此方法皆适用于两种 VL 模型
191
191
  # {
bizyengine/version.txt CHANGED
@@ -1 +1 @@
1
- 1.2.43
1
+ 1.2.44
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bizyengine
3
- Version: 1.2.43
3
+ Version: 1.2.44
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=BtoigMhexC9rsdu6n-cE61VfK18rb-lvtD7WF4nXsdo,7
2
+ bizyengine/version.txt,sha256=4snfTaHJGWr0PBVgMtSm3pcbQu_i2a1kfCnj-5TqQkQ,7
3
3
  bizyengine/bizy_server/__init__.py,sha256=SP9oSblnPo4KQyh7yOGD26YCskFAcQHAZy04nQBNRIw,200
4
4
  bizyengine/bizy_server/api_client.py,sha256=t6cwob7hs993oy5WdFcjKtIzfi3S_eUhODdDVv_Hedo,43822
5
5
  bizyengine/bizy_server/errno.py,sha256=1UiFmE2U7r7hCHgsw4-p_YL0VCmTJc9NyYDEbhkanaY,16336
@@ -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=M9P0oungSiUFGRxev3jJxhUTvjm8ixREQ-DCoyzU0gA,58617
10
+ bizyengine/bizy_server/server.py,sha256=IcsvwOPMxepxSRnQi5XK_dqIWmH4dwd5ZeJEUYzfhls,58881
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
@@ -78,8 +78,8 @@ bizyengine/misc/nodes_controlnet_union_sdxl.py,sha256=fYyu_XMY7mcX1Ad9x30q1tYB8m
78
78
  bizyengine/misc/route_sam.py,sha256=-bMIR2QalfnszipGxSxvDAHGJa5gPSrjkYPb5baaRg4,1561
79
79
  bizyengine/misc/segment_anything.py,sha256=wNKYwlYPMszfwj23524geFZJjZaG4eye65SGaUnh77I,8941
80
80
  bizyengine/misc/supernode.py,sha256=STN9gaxfTSErH8OiHeZa47d8z-G9S0I7fXuJvHQOBFM,4532
81
- bizyengine/misc/utils.py,sha256=deQjBgLAkxIr-NaOMm77TcgBT3ExAp0MFm5ehUJ3CGs,6829
82
- bizyengine-1.2.43.dist-info/METADATA,sha256=HkYWO2J_X38zk2PQjoDVRlDnoHa_lEQaNOP0YwvYBXk,675
83
- bizyengine-1.2.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- bizyengine-1.2.43.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
85
- bizyengine-1.2.43.dist-info/RECORD,,
81
+ bizyengine/misc/utils.py,sha256=CKduySGSMNGlJMImHyZmN-giABY5VUaB88f6Kq-HAV0,6831
82
+ bizyengine-1.2.44.dist-info/METADATA,sha256=lEKqEJ96_VcpjrrdJnbGM6nmDN0u4QJYLKXonJJWSnM,675
83
+ bizyengine-1.2.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
+ bizyengine-1.2.44.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
85
+ bizyengine-1.2.44.dist-info/RECORD,,