vectorvein 0.2.60__py3-none-any.whl → 0.2.62__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/types/defaults.py +16 -0
- vectorvein/workflow/utils/json_to_code.py +11 -9
- {vectorvein-0.2.60.dist-info → vectorvein-0.2.62.dist-info}/METADATA +1 -1
- {vectorvein-0.2.60.dist-info → vectorvein-0.2.62.dist-info}/RECORD +6 -6
- {vectorvein-0.2.60.dist-info → vectorvein-0.2.62.dist-info}/WHEEL +0 -0
- {vectorvein-0.2.60.dist-info → vectorvein-0.2.62.dist-info}/entry_points.txt +0 -0
vectorvein/types/defaults.py
CHANGED
@@ -278,6 +278,14 @@ QWEN_MODELS: Final[Dict[str, Dict[str, Any]]] = {
|
|
278
278
|
"function_call_available": True,
|
279
279
|
"response_format_available": True,
|
280
280
|
},
|
281
|
+
"qvq-max": {
|
282
|
+
"id": "qvq-max",
|
283
|
+
"context_length": 122880,
|
284
|
+
"max_output_tokens": 8192,
|
285
|
+
"function_call_available": False,
|
286
|
+
"response_format_available": False,
|
287
|
+
"native_multimodal": True,
|
288
|
+
},
|
281
289
|
}
|
282
290
|
|
283
291
|
# Yi models
|
@@ -717,6 +725,14 @@ GEMINI_MODELS: Final[Dict[str, Dict[str, Any]]] = {
|
|
717
725
|
"response_format_available": True,
|
718
726
|
"native_multimodal": True,
|
719
727
|
},
|
728
|
+
"gemini-2.5-pro-exp-03-25": {
|
729
|
+
"id": "gemini-2.5-pro-exp-03-25",
|
730
|
+
"context_length": 1048576,
|
731
|
+
"max_output_tokens": 8192,
|
732
|
+
"function_call_available": True,
|
733
|
+
"response_format_available": True,
|
734
|
+
"native_multimodal": True,
|
735
|
+
},
|
720
736
|
}
|
721
737
|
|
722
738
|
# 百度文心一言 ERNIE 模型
|
@@ -142,8 +142,8 @@ def generate_python_code(
|
|
142
142
|
code.append("")
|
143
143
|
|
144
144
|
# 生成节点实例化代码
|
145
|
-
for
|
146
|
-
code.append(f"{
|
145
|
+
for node_info in node_instances.values():
|
146
|
+
code.append(f"{node_info['var_name']} = {node_info['type']}()")
|
147
147
|
|
148
148
|
code.append("")
|
149
149
|
code.append("workflow = Workflow()")
|
@@ -153,8 +153,8 @@ def generate_python_code(
|
|
153
153
|
code.append(f"workflow.add_nodes([\n{'\n'.join(node_list)}\n])")
|
154
154
|
|
155
155
|
code.append("")
|
156
|
-
for
|
157
|
-
for port in
|
156
|
+
for node_info in node_instances.values():
|
157
|
+
for port in node_info["add_ports"]:
|
158
158
|
params = [
|
159
159
|
f"name={to_python_str(port['name'])}",
|
160
160
|
f"port_type={to_python_str(port['field_type'])}",
|
@@ -166,13 +166,15 @@ def generate_python_code(
|
|
166
166
|
params.append(f"options={port['options']}")
|
167
167
|
if port.get("is_output"):
|
168
168
|
params.append(f"is_output={bool(port['is_output'])}")
|
169
|
-
|
169
|
+
if node_info["type"] == "ProgrammingFunction":
|
170
|
+
params.append(f'field_type="{port["type"]}"')
|
171
|
+
code.append(f"{node_info['var_name']}.add_port({', '.join(params)})")
|
170
172
|
|
171
|
-
for port_name in
|
172
|
-
code.append(f"{
|
173
|
+
for port_name in node_info["show_ports"]:
|
174
|
+
code.append(f"{node_info['var_name']}.ports['{port_name}'].show = True")
|
173
175
|
|
174
|
-
for port in
|
175
|
-
code.append(f"{
|
176
|
+
for port in node_info["values"]:
|
177
|
+
code.append(f"{node_info['var_name']}.ports['{port['name']}'].value = {to_python_str(port['value'])}")
|
176
178
|
|
177
179
|
code.append("")
|
178
180
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
vectorvein-0.2.
|
2
|
-
vectorvein-0.2.
|
3
|
-
vectorvein-0.2.
|
1
|
+
vectorvein-0.2.62.dist-info/METADATA,sha256=Km6--vbOTLjCvYp33ez5-FLM9aJ21IGHsvKt0xghHhY,4570
|
2
|
+
vectorvein-0.2.62.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
3
|
+
vectorvein-0.2.62.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
|
@@ -32,7 +32,7 @@ vectorvein/server/token_server.py,sha256=36F9PKSNOX8ZtYBXY_l-76GQTpUSmQ2Y8EMy1H7
|
|
32
32
|
vectorvein/settings/__init__.py,sha256=3Kw3hbvqcIQepAR6Q2m2UXbBnwyJTUm8yAz-aHmbUTg,11163
|
33
33
|
vectorvein/settings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
34
|
vectorvein/types/__init__.py,sha256=ypg8c8AwF49FrFBMqmgH_eIBH4LFf0KN4kjqQa7zrvM,3376
|
35
|
-
vectorvein/types/defaults.py,sha256=
|
35
|
+
vectorvein/types/defaults.py,sha256=qNvqlCT-aTYiqx3ywyoO9SnQn8GlV_eDJ9Oct2Jovts,28090
|
36
36
|
vectorvein/types/enums.py,sha256=LplSVkXLBK-t8TWtJKj_f7ktWTd6CSHWRLb67XKMm54,1716
|
37
37
|
vectorvein/types/exception.py,sha256=KtnqZ-1DstHm95SZAyZdHhkGq1bJ4A9Aw3Zfdu-VIFo,130
|
38
38
|
vectorvein/types/llm_parameters.py,sha256=Bdz9E_x0G96rvJ5TnEFPrU5QV4I2y0YFv7dY4Pq-MuU,7933
|
@@ -62,6 +62,6 @@ vectorvein/workflow/nodes/vector_db.py,sha256=p9AT_E8ASbcYHZqHYTCIGvqkIqzxaFM4Ux
|
|
62
62
|
vectorvein/workflow/nodes/video_generation.py,sha256=qmdg-t_idpxq1veukd-jv_ChICMOoInKxprV9Z4Vi2w,4118
|
63
63
|
vectorvein/workflow/nodes/web_crawlers.py,sha256=FB0bTimkk___p3Z5UwQx2YarJyQCc45jjnbXbgGA_qw,5640
|
64
64
|
vectorvein/workflow/utils/check.py,sha256=Oj_S5WQf4_Fr_ro3ipjZt9unKFSFcuwZrrSmrS9kVLE,10193
|
65
|
-
vectorvein/workflow/utils/json_to_code.py,sha256
|
65
|
+
vectorvein/workflow/utils/json_to_code.py,sha256=U9EF62D270Ff1D8JKH3Am_jwsiDkSLeC41MZz7rZ8hg,6257
|
66
66
|
vectorvein/workflow/utils/layout.py,sha256=j0bRD3uaXu40xCS6U6BGahBI8FrHa5MiF55GbTrZ1LM,4565
|
67
|
-
vectorvein-0.2.
|
67
|
+
vectorvein-0.2.62.dist-info/RECORD,,
|
File without changes
|
File without changes
|