vectorvein 0.2.94__py3-none-any.whl → 0.2.96__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.
@@ -517,8 +517,9 @@ class OpenAICompatibleChatClient(BaseChatClient):
517
517
  result["content"] = result["content"].replace(think_match.group(0), "", 1)
518
518
 
519
519
  if tools:
520
- if self.model_setting.function_call_available and response.choices[0].message.tool_calls:
521
- result["tool_calls"] = [{**tool_call.model_dump(), "type": "function"} for tool_call in response.choices[0].message.tool_calls]
520
+ if self.model_setting.function_call_available:
521
+ if response.choices[0].message.tool_calls:
522
+ result["tool_calls"] = [{**tool_call.model_dump(), "type": "function"} for tool_call in response.choices[0].message.tool_calls]
522
523
  else:
523
524
  tool_call_content_processor = ToolCallContentProcessor(result["content"])
524
525
  tool_call_data = tool_call_content_processor.tool_calls
@@ -990,8 +991,9 @@ class AsyncOpenAICompatibleChatClient(BaseAsyncChatClient):
990
991
  result["content"] = result["content"].replace(think_match.group(0), "", 1)
991
992
 
992
993
  if tools:
993
- if self.model_setting.function_call_available and response.choices[0].message.tool_calls:
994
- result["tool_calls"] = [{**tool_call.model_dump(), "type": "function"} for tool_call in response.choices[0].message.tool_calls]
994
+ if self.model_setting.function_call_available:
995
+ if response.choices[0].message.tool_calls:
996
+ result["tool_calls"] = [{**tool_call.model_dump(), "type": "function"} for tool_call in response.choices[0].message.tool_calls]
995
997
  else:
996
998
  tool_call_content_processor = ToolCallContentProcessor(result["content"])
997
999
  tool_call_data = tool_call_content_processor.tool_calls
@@ -100,7 +100,7 @@ DEEPSEEK_MODELS: Final[Dict[str, ModelSettingDict]] = {
100
100
  "id": "deepseek-reasoner",
101
101
  "context_length": 64000,
102
102
  "max_output_tokens": 8192,
103
- "function_call_available": False,
103
+ "function_call_available": True,
104
104
  "response_format_available": False,
105
105
  "native_multimodal": False,
106
106
  },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectorvein
3
- Version: 0.2.94
3
+ Version: 0.2.96
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.94.dist-info/METADATA,sha256=vX4U8vYbP1dD772MHlWMvmA1u9eo4ogx2Dw2FH4zBNc,4567
2
- vectorvein-0.2.94.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- vectorvein-0.2.94.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ vectorvein-0.2.96.dist-info/METADATA,sha256=CWBCAxqrKUZke23EwSmb7ycDvpIizYhCI3EoApv7t3s,4567
2
+ vectorvein-0.2.96.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ vectorvein-0.2.96.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
@@ -19,7 +19,7 @@ vectorvein/chat_clients/minimax_client.py,sha256=YOILWcsHsN5tihLTMbKJIyJr9TJREMI
19
19
  vectorvein/chat_clients/mistral_client.py,sha256=1aKSylzBDaLYcFnaBIL4-sXSzWmXfBeON9Q0rq-ziWw,534
20
20
  vectorvein/chat_clients/moonshot_client.py,sha256=gbu-6nGxx8uM_U2WlI4Wus881rFRotzHtMSoYOcruGU,526
21
21
  vectorvein/chat_clients/openai_client.py,sha256=Nz6tV45pWcsOupxjnsRsGTicbQNJWIZyxuJoJ5DGMpg,527
22
- vectorvein/chat_clients/openai_compatible_client.py,sha256=0nj5DwnY8llctoxbW-UXsqVjTRiuezAgkISnV_ygnA4,48869
22
+ vectorvein/chat_clients/openai_compatible_client.py,sha256=oJeiAtnxUrfqnJtlk_niehLlzfd2yHGG5tKthqPsEFI,48919
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
@@ -32,7 +32,7 @@ vectorvein/server/token_server.py,sha256=36F9PKSNOX8ZtYBXY_l-76GQTpUSmQ2Y8EMy1H7
32
32
  vectorvein/settings/__init__.py,sha256=j8BNRqJ23GWI83vFzOQJZvZuy-WtKMeOTJRghG4cG5I,11471
33
33
  vectorvein/settings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  vectorvein/types/__init__.py,sha256=0XNY7FGPklSk0eKPR0ZgwG2kNqyZ0z3Z3G7oLP0ep8Y,3838
35
- vectorvein/types/defaults.py,sha256=XUkZI2soCyatfPlXPveDVi6_BtpZxTLk4hjPCBn9BSs,38445
35
+ vectorvein/types/defaults.py,sha256=aSGkKIP2crYylumrjng80e6XDNIppzl7_Jw7q1lhi5I,38444
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=q2Ilrh0mjERnI8qRDJ-2exQlHiMb-HEXVFTDiAVk6Dk,9452
@@ -65,4 +65,4 @@ vectorvein/workflow/utils/analyse.py,sha256=msmvyz35UTYTwqQR5sg9H0sm1vxmGDSmep9X
65
65
  vectorvein/workflow/utils/check.py,sha256=B_NdwqIqnc7Ko2HHqFpfOmWVaAu21tPITe0szKfiZKc,11414
66
66
  vectorvein/workflow/utils/json_to_code.py,sha256=P8dhhSNgKhTnW17qXNjLO2aLdb0rA8qMAWxhObol2TU,7295
67
67
  vectorvein/workflow/utils/layout.py,sha256=j0bRD3uaXu40xCS6U6BGahBI8FrHa5MiF55GbTrZ1LM,4565
68
- vectorvein-0.2.94.dist-info/RECORD,,
68
+ vectorvein-0.2.96.dist-info/RECORD,,