vectorvein 0.2.23__py3-none-any.whl → 0.2.24__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.
@@ -47,9 +47,6 @@ from anthropic.types import (
47
47
  RawContentBlockStartEvent,
48
48
  RawContentBlockDeltaEvent,
49
49
  )
50
- from google.oauth2.credentials import Credentials
51
- from google.auth.transport.requests import Request
52
- from google.auth import _helpers
53
50
 
54
51
  from ..types import defaults as defs
55
52
  from .utils import cutoff_messages, get_message_token_counts
@@ -217,6 +214,11 @@ class AnthropicChatClient(BaseChatClient):
217
214
  if self.endpoint.is_vertex or self.endpoint.endpoint_type == "anthropic_vertex":
218
215
  if self.endpoint.credentials is None:
219
216
  raise ValueError("Anthropic Vertex endpoint requires credentials")
217
+
218
+ from google.auth import _helpers
219
+ from google.oauth2.credentials import Credentials
220
+ from google.auth.transport.requests import Request
221
+
220
222
  self.creds = Credentials(
221
223
  token=self.endpoint.credentials.get("token"),
222
224
  refresh_token=self.endpoint.credentials.get("refresh_token"),
@@ -750,6 +752,11 @@ class AsyncAnthropicChatClient(BaseAsyncChatClient):
750
752
  if self.endpoint.is_vertex or self.endpoint.endpoint_type == "anthropic_vertex":
751
753
  if self.endpoint.credentials is None:
752
754
  raise ValueError("Anthropic Vertex endpoint requires credentials")
755
+
756
+ from google.auth import _helpers
757
+ from google.oauth2.credentials import Credentials
758
+ from google.auth.transport.requests import Request
759
+
753
760
  self.creds = Credentials(
754
761
  token=self.endpoint.credentials.get("token"),
755
762
  refresh_token=self.endpoint.credentials.get("refresh_token"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectorvein
3
- Version: 0.2.23
3
+ Version: 0.2.24
4
4
  Summary: VectorVein Python SDK
5
5
  Author-Email: Anderson <andersonby@163.com>
6
6
  License: MIT
@@ -8,12 +8,11 @@ Requires-Python: >=3.10
8
8
  Requires-Dist: openai>=1.37.1
9
9
  Requires-Dist: tiktoken>=0.7.0
10
10
  Requires-Dist: httpx>=0.27.0
11
- Requires-Dist: anthropic[bedrock,vertex]>=0.47.1
11
+ Requires-Dist: anthropic>=0.47.1
12
12
  Requires-Dist: pydantic>=2.8.2
13
13
  Requires-Dist: Pillow>=10.4.0
14
14
  Requires-Dist: deepseek-tokenizer>=0.1.0
15
15
  Requires-Dist: qwen-tokenizer>=0.2.0
16
- Requires-Dist: google-auth>=2.35.0
17
16
  Requires-Dist: pycryptodome>=3.21.0
18
17
  Provides-Extra: server
19
18
  Requires-Dist: fastapi; extra == "server"
@@ -22,6 +21,11 @@ Provides-Extra: redis
22
21
  Requires-Dist: redis; extra == "redis"
23
22
  Provides-Extra: diskcache
24
23
  Requires-Dist: diskcache; extra == "diskcache"
24
+ Provides-Extra: vertex
25
+ Requires-Dist: anthropic[vertex]; extra == "vertex"
26
+ Requires-Dist: google-auth>=2.35.0; extra == "vertex"
27
+ Provides-Extra: bedrock
28
+ Requires-Dist: anthropic[bedrock]; extra == "bedrock"
25
29
  Description-Content-Type: text/markdown
26
30
 
27
31
  # 向量脉络 API 包
@@ -1,13 +1,13 @@
1
- vectorvein-0.2.23.dist-info/METADATA,sha256=INjYSMDy-ARR3Bauf7e8rV-QmPaDE6CSOmqYK5E3Jfk,4414
2
- vectorvein-0.2.23.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- vectorvein-0.2.23.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ vectorvein-0.2.24.dist-info/METADATA,sha256=Vq9TrFThHAi0HNPZxp4-JuEjGB7vgMSbf2hOZNJXRXQ,4570
2
+ vectorvein-0.2.24.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ vectorvein-0.2.24.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
7
7
  vectorvein/api/exceptions.py,sha256=uS_PAdx0ksC0r3dgfSGWdbLMZm4qdLeWSSqCv1g3_Gc,772
8
8
  vectorvein/api/models.py,sha256=xtPWMsB0yIJI7i-gY4B6MtvXv0ZIXnoeKspmeInH6fU,1449
9
9
  vectorvein/chat_clients/__init__.py,sha256=UIytpIgwo8qkZpIyrHVxLYTyliUOTp4J7C4iHRjbtWE,23850
10
- vectorvein/chat_clients/anthropic_client.py,sha256=6yAZ6YYsyt96yqfjugjXQCgA_YhUhEw0whvZAWrPGbM,58768
10
+ vectorvein/chat_clients/anthropic_client.py,sha256=URufNrSLKk24kaNPwvxjDfRsYcSSbAmPjyZJdSt2U7Q,58978
11
11
  vectorvein/chat_clients/baichuan_client.py,sha256=CVMvpgjdrZGv0BWnTOBD-f2ufZ3wq3496wqukumsAr4,526
12
12
  vectorvein/chat_clients/base_client.py,sha256=p7s-G4Wh9MSpDKEfG8wuFAeWy5DGvj5Go31hqrpQPhM,38817
13
13
  vectorvein/chat_clients/deepseek_client.py,sha256=3qWu01NlJAP2N-Ff62d5-CZXZitlizE1fzb20LNetig,526
@@ -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.23.dist-info/RECORD,,
65
+ vectorvein-0.2.24.dist-info/RECORD,,