vectorvein 0.2.27__py3-none-any.whl → 0.2.29__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.
@@ -561,6 +561,17 @@ def transform_from_openai_message(message: ChatCompletionMessageParam, backend:
561
561
  content = message.get("content", "")
562
562
 
563
563
  if backend == BackendType.Anthropic:
564
+ if role == "tool":
565
+ return {
566
+ "role": "user",
567
+ "content": [
568
+ {
569
+ "type": "tool_result",
570
+ "tool_use_id": message["tool_call_id"], # type: ignore
571
+ "content": message["content"], # type: ignore
572
+ }
573
+ ],
574
+ }
564
575
  if isinstance(content, list):
565
576
  formatted_content = []
566
577
  for item in content:
@@ -204,10 +204,10 @@ QWEN_MODELS: Final[Dict[str, Dict[str, Any]]] = {
204
204
  "function_call_available": False,
205
205
  "response_format_available": False,
206
206
  },
207
- "qwq-32b-preview": {
208
- "id": "qwq-32b-preview",
209
- "context_length": 30000,
210
- "max_output_tokens": 4096,
207
+ "qwq-32b": {
208
+ "id": "qwq-32b",
209
+ "context_length": 131072,
210
+ "max_output_tokens": 8192,
211
211
  "function_call_available": False,
212
212
  "response_format_available": False,
213
213
  },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectorvein
3
- Version: 0.2.27
3
+ Version: 0.2.29
4
4
  Summary: VectorVein Python SDK
5
5
  Author-Email: Anderson <andersonby@163.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
- vectorvein-0.2.27.dist-info/METADATA,sha256=eRQRtg4_0C11ovd8KFKMW2Z-5eCIllKhPMWyFlx9PE4,4570
2
- vectorvein-0.2.27.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- vectorvein-0.2.27.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ vectorvein-0.2.29.dist-info/METADATA,sha256=x_u1wwPKVV4ZhMXjLN0VmM3uG72meapuWpH1jCbBtsE,4570
2
+ vectorvein-0.2.29.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ vectorvein-0.2.29.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=d6V6T_FvPxEuOhHoQC-NH
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=Um_RAhZOIsmrQabb76EZkiF61bGcX2enWScUC9Pk8ik,25393
26
+ vectorvein/chat_clients/utils.py,sha256=hb4fNgd1F3AI46qBqAT4IEQhLw6qkkdPjf9PDIEb9A8,25777
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
@@ -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=DJYGhlshgUQgzXPfMfKW5sTpBClZUCLhqmCqF44lVuU,3329
35
- vectorvein/types/defaults.py,sha256=wNPrfYDwsXMNIxofgGdN-ix9-by6WQu3cGIRySl3Q2E,27350
35
+ vectorvein/types/defaults.py,sha256=U8acSg7yBWz5rOuwqRY45XX6lqPkM7Y7RbuurX9cpxg,27335
36
36
  vectorvein/types/enums.py,sha256=LplSVkXLBK-t8TWtJKj_f7ktWTd6CSHWRLb67XKMm54,1716
37
37
  vectorvein/types/exception.py,sha256=gnW4GnJ76jND6UGnodk9xmqkcbeS7Cz2rvncA2HpD5E,69
38
38
  vectorvein/types/llm_parameters.py,sha256=1-8G6ieUj_Hb_hnJNTj7kt_7R6LkPmA6fcbNuIIiDDs,8070
@@ -62,4 +62,4 @@ vectorvein/workflow/nodes/vector_db.py,sha256=t6I17q6iR3yQreiDHpRrksMdWDPIvgqJs0
62
62
  vectorvein/workflow/nodes/video_generation.py,sha256=qmdg-t_idpxq1veukd-jv_ChICMOoInKxprV9Z4Vi2w,4118
63
63
  vectorvein/workflow/nodes/web_crawlers.py,sha256=LsqomfXfqrXfHJDO1cl0Ox48f4St7X_SL12DSbAMSOw,5415
64
64
  vectorvein/workflow/utils/json_to_code.py,sha256=F7dhDy8kGc8ndOeihGLRLGFGlquoxVlb02ENtxnQ0C8,5914
65
- vectorvein-0.2.27.dist-info/RECORD,,
65
+ vectorvein-0.2.29.dist-info/RECORD,,