vectorvein 0.2.52__py3-none-any.whl → 0.2.53__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.
- vectorvein/chat_clients/utils.py +1 -1
- vectorvein/workflow/utils/check.py +4 -2
- {vectorvein-0.2.52.dist-info → vectorvein-0.2.53.dist-info}/METADATA +1 -1
- {vectorvein-0.2.52.dist-info → vectorvein-0.2.53.dist-info}/RECORD +6 -6
- {vectorvein-0.2.52.dist-info → vectorvein-0.2.53.dist-info}/WHEEL +0 -0
- {vectorvein-0.2.52.dist-info → vectorvein-0.2.53.dist-info}/entry_points.txt +0 -0
vectorvein/chat_clients/utils.py
CHANGED
@@ -126,7 +126,7 @@ def get_token_counts(text: str | dict, model: str = "", use_token_server_first:
|
|
126
126
|
text = str(text)
|
127
127
|
if model == "gpt-3.5-turbo":
|
128
128
|
return len(get_gpt_35_encoding().encode(text))
|
129
|
-
elif model.startswith(("gpt-4o", "o1-")):
|
129
|
+
elif model.startswith(("gpt-4o", "o1-", "o3-")):
|
130
130
|
return len(get_gpt_4o_encoding().encode(text))
|
131
131
|
elif model.startswith(("abab", "MiniMax")):
|
132
132
|
backend_setting = settings.get_backend(BackendType.MiniMax).models[model]
|
@@ -139,10 +139,12 @@ def check_ui(workflow: "Workflow") -> UIWarning:
|
|
139
139
|
# 检查是否为输出节点
|
140
140
|
if hasattr(node, "category") and node.category == "outputs":
|
141
141
|
warnings["has_output_nodes"] = True
|
142
|
+
continue # 输出节点不检查连接覆盖问题
|
142
143
|
|
143
144
|
# 检查节点的输入端口
|
144
|
-
|
145
|
-
|
145
|
+
ports = node.ports if hasattr(node, "ports") else {}
|
146
|
+
for port_name in ports.keys():
|
147
|
+
port = ports.get(port_name)
|
146
148
|
# 确保是输入端口且设置为显示
|
147
149
|
if hasattr(port, "show") and getattr(port, "show", False) and isinstance(port, InputPort):
|
148
150
|
has_shown_input_ports = True
|
@@ -1,6 +1,6 @@
|
|
1
|
-
vectorvein-0.2.
|
2
|
-
vectorvein-0.2.
|
3
|
-
vectorvein-0.2.
|
1
|
+
vectorvein-0.2.53.dist-info/METADATA,sha256=Zhw-vVnJ900HI43MBieVbVDcWHQoox9PDHyTjbKovow,4570
|
2
|
+
vectorvein-0.2.53.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
3
|
+
vectorvein-0.2.53.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
4
|
vectorvein/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
vectorvein/api/__init__.py,sha256=lfY-XA46fgD2iIZTU0VYP8i07AwA03Egj4Qua0vUKrQ,738
|
6
6
|
vectorvein/api/client.py,sha256=xF-leKDQzVyyy9FnIRaz0k4eElYW1XbbzeRLcpnyk90,33047
|
@@ -23,7 +23,7 @@ vectorvein/chat_clients/openai_compatible_client.py,sha256=3MEyKqlf1BtzbNpmqAHQq
|
|
23
23
|
vectorvein/chat_clients/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
vectorvein/chat_clients/qwen_client.py,sha256=-ryh-m9PgsO0fc4ulcCmPTy1155J8YUy15uPoJQOHA0,513
|
25
25
|
vectorvein/chat_clients/stepfun_client.py,sha256=zsD2W5ahmR4DD9cqQTXmJr3txrGuvxbRWhFlRdwNijI,519
|
26
|
-
vectorvein/chat_clients/utils.py,sha256=
|
26
|
+
vectorvein/chat_clients/utils.py,sha256=G2GBFfDHBf5Z_vR2tXNVb1di5G8KKm2RoYlJpey2oxU,29481
|
27
27
|
vectorvein/chat_clients/xai_client.py,sha256=eLFJJrNRJ-ni3DpshODcr3S1EJQLbhVwxyO1E54LaqM,491
|
28
28
|
vectorvein/chat_clients/yi_client.py,sha256=RNf4CRuPJfixrwLZ3-DEc3t25QDe1mvZeb9sku2f8Bc,484
|
29
29
|
vectorvein/chat_clients/zhipuai_client.py,sha256=Ys5DSeLCuedaDXr3PfG1EW2zKXopt-awO2IylWSwY0s,519
|
@@ -61,7 +61,7 @@ vectorvein/workflow/nodes/triggers.py,sha256=BolH4X6S8HSuU2kwHmYKr-ozHbgKBmdZRcn
|
|
61
61
|
vectorvein/workflow/nodes/vector_db.py,sha256=t6I17q6iR3yQreiDHpRrksMdWDPIvgqJs076z-7dlQQ,5712
|
62
62
|
vectorvein/workflow/nodes/video_generation.py,sha256=qmdg-t_idpxq1veukd-jv_ChICMOoInKxprV9Z4Vi2w,4118
|
63
63
|
vectorvein/workflow/nodes/web_crawlers.py,sha256=BhJBX1AZH7-22Gu95Ox4qJqmH5DU-m4dbUb5N5DTA-M,5559
|
64
|
-
vectorvein/workflow/utils/check.py,sha256=
|
64
|
+
vectorvein/workflow/utils/check.py,sha256=sirsyg4io5BzgGM0VdEq5s9hyJk0z80Y_mNwCqMc6UI,6168
|
65
65
|
vectorvein/workflow/utils/json_to_code.py,sha256=F7dhDy8kGc8ndOeihGLRLGFGlquoxVlb02ENtxnQ0C8,5914
|
66
66
|
vectorvein/workflow/utils/layout.py,sha256=j0bRD3uaXu40xCS6U6BGahBI8FrHa5MiF55GbTrZ1LM,4565
|
67
|
-
vectorvein-0.2.
|
67
|
+
vectorvein-0.2.53.dist-info/RECORD,,
|
File without changes
|
File without changes
|