vectorvein 0.1.60__tar.gz → 0.1.62__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.
Files changed (35) hide show
  1. {vectorvein-0.1.60 → vectorvein-0.1.62}/PKG-INFO +1 -1
  2. {vectorvein-0.1.60 → vectorvein-0.1.62}/pyproject.toml +1 -1
  3. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/anthropic_client.py +9 -8
  4. {vectorvein-0.1.60 → vectorvein-0.1.62}/README.md +0 -0
  5. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/__init__.py +0 -0
  6. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/__init__.py +0 -0
  7. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/baichuan_client.py +0 -0
  8. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/base_client.py +0 -0
  9. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/deepseek_client.py +0 -0
  10. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/gemini_client.py +0 -0
  11. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/groq_client.py +0 -0
  12. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/local_client.py +0 -0
  13. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/minimax_client.py +0 -0
  14. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/mistral_client.py +0 -0
  15. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/moonshot_client.py +0 -0
  16. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/openai_client.py +0 -0
  17. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/openai_compatible_client.py +0 -0
  18. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/py.typed +0 -0
  19. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/qwen_client.py +0 -0
  20. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/stepfun_client.py +0 -0
  21. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/utils.py +0 -0
  22. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/xai_client.py +0 -0
  23. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/yi_client.py +0 -0
  24. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/chat_clients/zhipuai_client.py +0 -0
  25. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/py.typed +0 -0
  26. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/server/token_server.py +0 -0
  27. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/settings/__init__.py +0 -0
  28. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/settings/py.typed +0 -0
  29. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/types/defaults.py +0 -0
  30. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/types/enums.py +0 -0
  31. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/types/exception.py +0 -0
  32. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/types/llm_parameters.py +0 -0
  33. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/types/py.typed +0 -0
  34. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/utilities/media_processing.py +0 -0
  35. {vectorvein-0.1.60 → vectorvein-0.1.62}/src/vectorvein/utilities/retry.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectorvein
3
- Version: 0.1.60
3
+ Version: 0.1.62
4
4
  Summary: VectorVein python SDK
5
5
  Author-Email: Anderson <andersonby@163.com>
6
6
  License: MIT
@@ -17,7 +17,7 @@ description = "VectorVein python SDK"
17
17
  name = "vectorvein"
18
18
  readme = "README.md"
19
19
  requires-python = ">=3.10"
20
- version = "0.1.60"
20
+ version = "0.1.62"
21
21
 
22
22
  [project.license]
23
23
  text = "MIT"
@@ -179,8 +179,8 @@ class AnthropicChatClient(BaseChatClient):
179
179
  )
180
180
  self.model_id = None
181
181
 
182
- @cached_property
183
- def raw_client(self):
182
+ @property
183
+ def raw_client(self): # type: ignore
184
184
  if self.random_endpoint:
185
185
  self.random_endpoint = True
186
186
  endpoint = random.choice(self.backend_settings.models[self.model].endpoints)
@@ -233,6 +233,7 @@ class AnthropicChatClient(BaseChatClient):
233
233
  aws_access_key=self.endpoint.credentials.get("access_key"),
234
234
  aws_secret_key=self.endpoint.credentials.get("secret_key"),
235
235
  aws_region=self.endpoint.region,
236
+ base_url=self.endpoint.api_base,
236
237
  http_client=self.http_client,
237
238
  )
238
239
  elif self.endpoint.api_schema_type == "default":
@@ -400,7 +401,8 @@ class AnthropicChatClient(BaseChatClient):
400
401
  **kwargs,
401
402
  )
402
403
 
403
- assert isinstance(self.raw_client, Anthropic | AnthropicVertex)
404
+ raw_client = self.raw_client # 调用完 self.raw_client 后,self.model_id 会被赋值
405
+ assert isinstance(raw_client, Anthropic | AnthropicVertex | AnthropicBedrock)
404
406
 
405
407
  if isinstance(tools, OpenAINotGiven):
406
408
  tools = NOT_GIVEN
@@ -409,7 +411,6 @@ class AnthropicChatClient(BaseChatClient):
409
411
  if isinstance(top_p, OpenAINotGiven) or top_p is None:
410
412
  top_p = NOT_GIVEN
411
413
 
412
- raw_client = self.raw_client # 调用完 self.raw_client 后,self.model_id 会被赋值
413
414
  self.model_setting = self.backend_settings.models[self.model]
414
415
  if self.model_id is None:
415
416
  self.model_id = self.model_setting.id
@@ -569,8 +570,8 @@ class AsyncAnthropicChatClient(BaseAsyncChatClient):
569
570
  )
570
571
  self.model_id = None
571
572
 
572
- @cached_property
573
- def raw_client(self):
573
+ @property
574
+ def raw_client(self): # type: ignore
574
575
  if self.random_endpoint:
575
576
  self.random_endpoint = True
576
577
  endpoint = random.choice(self.backend_settings.models[self.model].endpoints)
@@ -792,7 +793,8 @@ class AsyncAnthropicChatClient(BaseAsyncChatClient):
792
793
  **kwargs,
793
794
  )
794
795
 
795
- assert isinstance(self.raw_client, AsyncAnthropic | AsyncAnthropicVertex)
796
+ raw_client = self.raw_client # 调用完 self.raw_client 后,self.model_id 会被赋值
797
+ assert isinstance(raw_client, AsyncAnthropic | AsyncAnthropicVertex | AsyncAnthropicBedrock)
796
798
 
797
799
  if isinstance(tools, OpenAINotGiven):
798
800
  tools = NOT_GIVEN
@@ -801,7 +803,6 @@ class AsyncAnthropicChatClient(BaseAsyncChatClient):
801
803
  if isinstance(top_p, OpenAINotGiven) or top_p is None:
802
804
  top_p = NOT_GIVEN
803
805
 
804
- raw_client = self.raw_client # 调用完 self.raw_client 后,self.model_id 会被赋值
805
806
  self.model_setting = self.backend_settings.models[self.model]
806
807
  if self.model_id is None:
807
808
  self.model_id = self.model_setting.id
File without changes