vectorvein 0.3.14__py3-none-any.whl → 0.3.16__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/anthropic_client.py +1 -2
- vectorvein/chat_clients/openai_compatible_client.py +2 -2
- vectorvein/types/llm_parameters.py +3 -3
- vectorvein/workflow/nodes/llms.py +1 -1
- {vectorvein-0.3.14.dist-info → vectorvein-0.3.16.dist-info}/METADATA +2 -2
- {vectorvein-0.3.14.dist-info → vectorvein-0.3.16.dist-info}/RECORD +8 -8
- {vectorvein-0.3.14.dist-info → vectorvein-0.3.16.dist-info}/WHEEL +0 -0
- {vectorvein-0.3.14.dist-info → vectorvein-0.3.16.dist-info}/entry_points.txt +0 -0
@@ -55,7 +55,6 @@ from ..types.llm_parameters import (
|
|
55
55
|
AnthropicToolParam,
|
56
56
|
AnthropicToolChoice,
|
57
57
|
ChatCompletionMessage,
|
58
|
-
ChatCompletionToolParam,
|
59
58
|
ChatCompletionDeltaMessage,
|
60
59
|
)
|
61
60
|
|
@@ -64,7 +63,7 @@ if TYPE_CHECKING:
|
|
64
63
|
from ..types.settings import SettingsDict
|
65
64
|
|
66
65
|
|
67
|
-
def refactor_tool_use_params(tools: Iterable[
|
66
|
+
def refactor_tool_use_params(tools: Iterable[ToolParam]) -> list[AnthropicToolParam]:
|
68
67
|
return [
|
69
68
|
{
|
70
69
|
"name": tool["function"]["name"],
|
@@ -326,7 +326,7 @@ class OpenAICompatibleChatClient(BaseChatClient):
|
|
326
326
|
else:
|
327
327
|
max_tokens = self.model_setting.context_length - token_counts - 64
|
328
328
|
|
329
|
-
if "o3-mini" in self.model_id or "o4-mini" in self.model_id:
|
329
|
+
if "o3-mini" in self.model_id or "o4-mini" in self.model_id or "gpt-5" in self.model_id:
|
330
330
|
max_completion_tokens = max_tokens
|
331
331
|
max_tokens = NOT_GIVEN
|
332
332
|
|
@@ -896,7 +896,7 @@ class AsyncOpenAICompatibleChatClient(BaseAsyncChatClient):
|
|
896
896
|
else:
|
897
897
|
max_tokens = self.model_setting.context_length - token_counts - 64
|
898
898
|
|
899
|
-
if "o3-mini" in self.model_id or "o4-mini" in self.model_id:
|
899
|
+
if "o3-mini" in self.model_id or "o4-mini" in self.model_id or "gpt-5" in self.model_id:
|
900
900
|
max_completion_tokens = max_tokens
|
901
901
|
max_tokens = NOT_GIVEN
|
902
902
|
|
@@ -19,11 +19,11 @@ from openai._types import NOT_GIVEN as OPENAI_NOT_GIVEN
|
|
19
19
|
from openai.types.chat import ChatCompletionMessageParam
|
20
20
|
from openai.types.chat.completion_create_params import ResponseFormat
|
21
21
|
from openai.types.chat.chat_completion_chunk import ChoiceDeltaToolCall
|
22
|
-
from openai.types.chat.chat_completion_tool_param import ChatCompletionToolParam
|
23
|
-
from openai.types.completion_usage import CompletionTokensDetails, PromptTokensDetails
|
24
22
|
from openai.types.chat.chat_completion_message_tool_call import ChatCompletionMessageToolCall
|
23
|
+
from openai.types.chat.chat_completion_function_tool_param import ChatCompletionFunctionToolParam
|
25
24
|
from openai.types.chat.chat_completion_stream_options_param import ChatCompletionStreamOptionsParam
|
26
25
|
from openai.types.chat.chat_completion_tool_choice_option_param import ChatCompletionToolChoiceOptionParam
|
26
|
+
from openai.types.completion_usage import CompletionTokensDetails, PromptTokensDetails
|
27
27
|
|
28
28
|
from . import defaults as defs
|
29
29
|
from .settings import EndpointOptionDict
|
@@ -219,7 +219,7 @@ NotGiven = AnthropicNotGiven | OpenAINotGiven
|
|
219
219
|
|
220
220
|
NOT_GIVEN = OPENAI_NOT_GIVEN
|
221
221
|
|
222
|
-
OpenAIToolParam =
|
222
|
+
OpenAIToolParam = ChatCompletionFunctionToolParam
|
223
223
|
ToolParam = OpenAIToolParam
|
224
224
|
|
225
225
|
Tools = Iterable[ToolParam]
|
@@ -240,7 +240,7 @@ class ChatGLM(Node):
|
|
240
240
|
"llm_model": InputPort(
|
241
241
|
name="llm_model",
|
242
242
|
port_type=PortType.SELECT,
|
243
|
-
value="glm-4-air",
|
243
|
+
value="glm-4-air",
|
244
244
|
options=[
|
245
245
|
{"value": "glm-4.5", "label": "glm-4.5"},
|
246
246
|
{"value": "glm-4.5-x", "label": "glm-4.5-x"},
|
@@ -1,11 +1,11 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vectorvein
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.16
|
4
4
|
Summary: VectorVein Python SDK
|
5
5
|
Author-Email: Anderson <andersonby@163.com>
|
6
6
|
License: MIT
|
7
7
|
Requires-Python: >=3.10
|
8
|
-
Requires-Dist: openai>=1.
|
8
|
+
Requires-Dist: openai>=1.99.3
|
9
9
|
Requires-Dist: tiktoken>=0.7.0
|
10
10
|
Requires-Dist: httpx>=0.27.0
|
11
11
|
Requires-Dist: anthropic>=0.47.1
|
@@ -1,13 +1,13 @@
|
|
1
|
-
vectorvein-0.3.
|
2
|
-
vectorvein-0.3.
|
3
|
-
vectorvein-0.3.
|
1
|
+
vectorvein-0.3.16.dist-info/METADATA,sha256=UVagEA8uEdifPXS6xv7VpW7r2DDs7ur2pp6dm4PbWJ4,4567
|
2
|
+
vectorvein-0.3.16.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
3
|
+
vectorvein-0.3.16.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=FZlKLKoI4MwXCpXmHrgfn4sk6XpanEhBoqgUkNfPsMc,32706
|
7
7
|
vectorvein/api/exceptions.py,sha256=nL0YeSA_DFpaN5o_niNVWSHJQEoSnVQ6OeyVffuAMSs,738
|
8
8
|
vectorvein/api/models.py,sha256=ZzJ8zszcrC1IZynGVeYTPXHeJPcDVbLzpDniZA1BBaI,1415
|
9
9
|
vectorvein/chat_clients/__init__.py,sha256=UIytpIgwo8qkZpIyrHVxLYTyliUOTp4J7C4iHRjbtWE,23850
|
10
|
-
vectorvein/chat_clients/anthropic_client.py,sha256=
|
10
|
+
vectorvein/chat_clients/anthropic_client.py,sha256=ioMzdGgv_nnh8qQE-Q7IVZeW5alnGIux6vDdE0Y7suY,68242
|
11
11
|
vectorvein/chat_clients/baichuan_client.py,sha256=CVMvpgjdrZGv0BWnTOBD-f2ufZ3wq3496wqukumsAr4,526
|
12
12
|
vectorvein/chat_clients/base_client.py,sha256=4tpXhXCIF_icTCgG_JFVxFDK_56I7Yij7u--kV1r4S8,42054
|
13
13
|
vectorvein/chat_clients/deepseek_client.py,sha256=3qWu01NlJAP2N-Ff62d5-CZXZitlizE1fzb20LNetig,526
|
@@ -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=
|
22
|
+
vectorvein/chat_clients/openai_compatible_client.py,sha256=lyRKCywswdjvvI2aSErUmXrPLNVT5mgi0HRwuf_kIyA,59467
|
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
|
@@ -35,7 +35,7 @@ vectorvein/types/__init__.py,sha256=0XNY7FGPklSk0eKPR0ZgwG2kNqyZ0z3Z3G7oLP0ep8Y,
|
|
35
35
|
vectorvein/types/defaults.py,sha256=RywhYctQC_MkYiGrJhbFqooI1La6Q1-eT_Tj3kx-7qo,43950
|
36
36
|
vectorvein/types/enums.py,sha256=LplSVkXLBK-t8TWtJKj_f7ktWTd6CSHWRLb67XKMm54,1716
|
37
37
|
vectorvein/types/exception.py,sha256=KtnqZ-1DstHm95SZAyZdHhkGq1bJ4A9Aw3Zfdu-VIFo,130
|
38
|
-
vectorvein/types/llm_parameters.py,sha256=
|
38
|
+
vectorvein/types/llm_parameters.py,sha256=80HEEpagwBbilXA5fQ6kd-lpbkqxOqm0jV-F20xtA1A,9680
|
39
39
|
vectorvein/types/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
40
|
vectorvein/types/settings.py,sha256=UHDnmigGUyv6XBRQCWK96ZjKjKYeWWMS7PtjaZBLxzs,4791
|
41
41
|
vectorvein/utilities/media_processing.py,sha256=v-3jHNpB3Qj-EzuwvJdYA_g1GQhj9XkBQ2ibaAAeiFw,8256
|
@@ -50,7 +50,7 @@ vectorvein/workflow/nodes/audio_generation.py,sha256=k8TpgNSguz-yIX396AJLdI2WB2-
|
|
50
50
|
vectorvein/workflow/nodes/control_flows.py,sha256=XbtJHY9zrjEk7vYVk2Do7t26ntHwtF0mquJZwGVd-pM,12354
|
51
51
|
vectorvein/workflow/nodes/file_processing.py,sha256=f2iDVcsKYVuKx4xyYsdPHXLTZLpX-ObWyBVeFY_xj8s,4453
|
52
52
|
vectorvein/workflow/nodes/image_generation.py,sha256=mjNxjyOdLSH8CfFqso4LvicIu-OBhNElp5gMJJQpR_s,40606
|
53
|
-
vectorvein/workflow/nodes/llms.py,sha256=
|
53
|
+
vectorvein/workflow/nodes/llms.py,sha256=T8f9FCZVgseZ1c998hvLwcqANh_09veSmLW1vDa1WxA,43986
|
54
54
|
vectorvein/workflow/nodes/media_editing.py,sha256=S0SvabYed8pBo2nP-m77O7u8fNTK28iER8zkdB55bbo,36057
|
55
55
|
vectorvein/workflow/nodes/media_processing.py,sha256=fIaxR8sWrPkcnMGTt79OICW3tYgsw2tXBx3hrN-SYLQ,27775
|
56
56
|
vectorvein/workflow/nodes/output.py,sha256=yueh5aTdv1ctgxNvjGOvA0GIPxpPgFi_oNP_76s9hOw,16398
|
@@ -65,4 +65,4 @@ vectorvein/workflow/utils/analyse.py,sha256=8kL3tAo6vOYkeg1zbMHyuuy16zuSRklFK_wA
|
|
65
65
|
vectorvein/workflow/utils/check.py,sha256=w-wmGeBO_zpQ5-7t3m_OZeVfSM6g_lsk1pZPAfdO_r4,11247
|
66
66
|
vectorvein/workflow/utils/json_to_code.py,sha256=HgCyc1h4hqZnT1HR0XqdLUzOIMtDw8Y0nTXXU5r2ZYw,7099
|
67
67
|
vectorvein/workflow/utils/layout.py,sha256=m8Jui-htCB6RwkkDwtj0elOdtkFsx7rSjdxwpRnYPFY,4500
|
68
|
-
vectorvein-0.3.
|
68
|
+
vectorvein-0.3.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|