vectorvein 0.2.41__tar.gz → 0.2.43__tar.gz
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-0.2.41 → vectorvein-0.2.43}/PKG-INFO +1 -1
- {vectorvein-0.2.41 → vectorvein-0.2.43}/pyproject.toml +1 -1
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/anthropic_client.py +6 -6
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/utils.py +1 -1
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/types/defaults.py +7 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/types/llm_parameters.py +0 -4
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/types/settings.py +0 -7
- {vectorvein-0.2.41 → vectorvein-0.2.43}/README.md +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/__init__.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/api/__init__.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/api/client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/api/exceptions.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/api/models.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/__init__.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/baichuan_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/base_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/deepseek_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/ernie_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/gemini_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/groq_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/local_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/minimax_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/mistral_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/moonshot_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/openai_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/openai_compatible_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/py.typed +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/qwen_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/stepfun_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/xai_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/yi_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/zhipuai_client.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/py.typed +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/server/token_server.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/settings/__init__.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/settings/py.typed +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/types/__init__.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/types/enums.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/types/exception.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/types/py.typed +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/utilities/media_processing.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/utilities/rate_limiter.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/utilities/retry.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/graph/edge.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/graph/node.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/graph/port.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/graph/workflow.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/__init__.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/audio_generation.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/control_flows.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/file_processing.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/image_generation.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/llms.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/media_editing.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/media_processing.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/output.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/relational_db.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/text_processing.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/tools.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/triggers.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/vector_db.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/video_generation.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/nodes/web_crawlers.py +0 -0
- {vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/workflow/utils/json_to_code.py +0 -0
@@ -263,13 +263,13 @@ class AnthropicChatClient(BaseChatClient):
|
|
263
263
|
base_url=self.endpoint.api_base,
|
264
264
|
http_client=self.http_client,
|
265
265
|
)
|
266
|
-
elif self.endpoint.
|
266
|
+
elif self.endpoint.endpoint_type in ("default", "anthropic"):
|
267
267
|
return Anthropic(
|
268
268
|
api_key=self.endpoint.api_key,
|
269
269
|
base_url=self.endpoint.api_base,
|
270
270
|
http_client=self.http_client,
|
271
271
|
)
|
272
|
-
|
272
|
+
else:
|
273
273
|
return OpenAICompatibleChatClient(
|
274
274
|
model=self.model,
|
275
275
|
stream=self.stream,
|
@@ -455,7 +455,7 @@ class AnthropicChatClient(BaseChatClient):
|
|
455
455
|
|
456
456
|
self.endpoint, self.model_id = self._set_endpoint()
|
457
457
|
|
458
|
-
if self.endpoint.
|
458
|
+
if self.endpoint.endpoint_type and self.endpoint.endpoint_type.startswith("openai"):
|
459
459
|
_tools = OPENAI_NOT_GIVEN if tools is NOT_GIVEN else tools
|
460
460
|
_tool_choice = OPENAI_NOT_GIVEN if tool_choice is NOT_GIVEN else tool_choice
|
461
461
|
|
@@ -810,13 +810,13 @@ class AsyncAnthropicChatClient(BaseAsyncChatClient):
|
|
810
810
|
aws_region=self.endpoint.region,
|
811
811
|
http_client=self.http_client,
|
812
812
|
)
|
813
|
-
elif self.endpoint.
|
813
|
+
elif self.endpoint.endpoint_type in ("default", "anthropic"):
|
814
814
|
return AsyncAnthropic(
|
815
815
|
api_key=self.endpoint.api_key,
|
816
816
|
base_url=self.endpoint.api_base,
|
817
817
|
http_client=self.http_client,
|
818
818
|
)
|
819
|
-
|
819
|
+
else:
|
820
820
|
return AsyncOpenAICompatibleChatClient(
|
821
821
|
model=self.model,
|
822
822
|
stream=self.stream,
|
@@ -1002,7 +1002,7 @@ class AsyncAnthropicChatClient(BaseAsyncChatClient):
|
|
1002
1002
|
|
1003
1003
|
self.endpoint, self.model_id = self._set_endpoint()
|
1004
1004
|
|
1005
|
-
if self.endpoint.
|
1005
|
+
if self.endpoint.endpoint_type and self.endpoint.endpoint_type.startswith("openai"):
|
1006
1006
|
_tools = OPENAI_NOT_GIVEN if tools is NOT_GIVEN else tools
|
1007
1007
|
_tool_choice = OPENAI_NOT_GIVEN if tool_choice is NOT_GIVEN else tool_choice
|
1008
1008
|
|
@@ -238,7 +238,7 @@ def get_token_counts(text: str | dict, model: str = "", use_token_server_first:
|
|
238
238
|
or endpoint.endpoint_type == "anthropic_bedrock"
|
239
239
|
):
|
240
240
|
continue
|
241
|
-
elif endpoint.
|
241
|
+
elif endpoint.endpoint_type in ("default", "anthropic"):
|
242
242
|
return (
|
243
243
|
Anthropic(
|
244
244
|
api_key=endpoint.api_key,
|
@@ -778,6 +778,13 @@ ERNIE_MODELS: Final[Dict[str, Dict[str, Any]]] = {
|
|
778
778
|
"function_call_available": False,
|
779
779
|
"response_format_available": True,
|
780
780
|
},
|
781
|
+
"ernie-4.5-8k-preview": {
|
782
|
+
"id": "ernie-4.5-8k-preview",
|
783
|
+
"context_length": 5120,
|
784
|
+
"max_output_tokens": 2048,
|
785
|
+
"function_call_available": False,
|
786
|
+
"response_format_available": True,
|
787
|
+
},
|
781
788
|
}
|
782
789
|
|
783
790
|
|
@@ -44,10 +44,6 @@ class EndpointSetting(BaseModel):
|
|
44
44
|
"default",
|
45
45
|
description="The type of endpoint. Set to 'default' will determine the type automatically.",
|
46
46
|
)
|
47
|
-
api_schema_type: Optional[Literal["default", "openai", "anthropic"]] = Field(
|
48
|
-
"default",
|
49
|
-
description="The type of client for the endpoint. Set to 'default' will determine the type automatically.",
|
50
|
-
)
|
51
47
|
credentials: Optional[dict] = Field(None, description="Additional credentials if needed.")
|
52
48
|
is_azure: bool = Field(False, description="Indicates if the endpoint is for Azure.")
|
53
49
|
is_vertex: bool = Field(False, description="Indicates if the endpoint is for Vertex.")
|
@@ -80,13 +80,6 @@ class EndpointSettingDict(TypedDict):
|
|
80
80
|
"anthropic_bedrock",
|
81
81
|
]
|
82
82
|
]
|
83
|
-
api_schema_type: NotRequired[
|
84
|
-
Literal[
|
85
|
-
"default",
|
86
|
-
"openai",
|
87
|
-
"anthropic",
|
88
|
-
]
|
89
|
-
]
|
90
83
|
credentials: NotRequired[dict]
|
91
84
|
is_azure: NotRequired[bool]
|
92
85
|
is_vertex: NotRequired[bool]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vectorvein-0.2.41 → vectorvein-0.2.43}/src/vectorvein/chat_clients/openai_compatible_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|