vectorvein 0.1.76__py3-none-any.whl → 0.1.77__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.
@@ -66,14 +66,9 @@ class BaseChatClient(ABC):
66
66
 
67
67
  def set_model_id_by_endpoint_id(self, endpoint_id: str):
68
68
  for endpoint_option in self.backend_settings.models[self.model].endpoints:
69
- if isinstance(endpoint_option, dict):
70
- if endpoint_id == endpoint_option["endpoint_id"]:
71
- self.model_id = endpoint_option["model_id"]
72
- break
73
- else:
74
- if endpoint_id == endpoint_option:
75
- self.model_id = endpoint_option
76
- break
69
+ if isinstance(endpoint_option, dict) and endpoint_id == endpoint_option["endpoint_id"]:
70
+ self.model_id = endpoint_option["model_id"]
71
+ break
77
72
  return self.model_id
78
73
 
79
74
  def _set_endpoint(self):
@@ -248,14 +243,9 @@ class BaseAsyncChatClient(ABC):
248
243
 
249
244
  def set_model_id_by_endpoint_id(self, endpoint_id: str):
250
245
  for endpoint_option in self.backend_settings.models[self.model].endpoints:
251
- if isinstance(endpoint_option, dict):
252
- if endpoint_id == endpoint_option["endpoint_id"]:
253
- self.model_id = endpoint_option["model_id"]
254
- break
255
- else:
256
- if endpoint_id == endpoint_option:
257
- self.model_id = endpoint_option
258
- break
246
+ if isinstance(endpoint_option, dict) and endpoint_id == endpoint_option["endpoint_id"]:
247
+ self.model_id = endpoint_option["model_id"]
248
+ break
259
249
  return self.model_id
260
250
 
261
251
  def _set_endpoint(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectorvein
3
- Version: 0.1.76
3
+ Version: 0.1.77
4
4
  Summary: VectorVein python SDK
5
5
  Author-Email: Anderson <andersonby@163.com>
6
6
  License: MIT
@@ -1,11 +1,11 @@
1
- vectorvein-0.1.76.dist-info/METADATA,sha256=nL8lCSplCHCoIAIizbD7-1XFuap2uhaK9wwrfUBaHmA,641
2
- vectorvein-0.1.76.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- vectorvein-0.1.76.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ vectorvein-0.1.77.dist-info/METADATA,sha256=EGx61L2VDmmghx_inG3CK2RuFi3tp8H2VOprx_XuqSE,641
2
+ vectorvein-0.1.77.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ vectorvein-0.1.77.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
4
  vectorvein/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  vectorvein/chat_clients/__init__.py,sha256=Oev7Lv1DIEWCMD-2Pm7e2cwzX7JFQTnIK-j6o4iUuyQ,17725
6
6
  vectorvein/chat_clients/anthropic_client.py,sha256=Uy9E8t6hrYymNobRsPRCX5W-KsBXRun-8rAiRsN8M00,37217
7
7
  vectorvein/chat_clients/baichuan_client.py,sha256=CVMvpgjdrZGv0BWnTOBD-f2ufZ3wq3496wqukumsAr4,526
8
- vectorvein/chat_clients/base_client.py,sha256=VgydhGTYv-cA6OJSw8Nus6nC3vy-2PHxeAJ8q3MjclE,13692
8
+ vectorvein/chat_clients/base_client.py,sha256=Dar-2b7YR13YcWlH6sLIrKNr9_6IrpdUMjdwVFQyu0Q,13350
9
9
  vectorvein/chat_clients/deepseek_client.py,sha256=3qWu01NlJAP2N-Ff62d5-CZXZitlizE1fzb20LNetig,526
10
10
  vectorvein/chat_clients/gemini_client.py,sha256=BsOhK4LI04pxak6wtmSju63it2P-zzIAXhCtgC6DfOQ,20453
11
11
  vectorvein/chat_clients/groq_client.py,sha256=Uow4pgdmFi93ZQSoOol2-0PhhqkW-S0XuSldvppz5U4,498
@@ -33,4 +33,4 @@ vectorvein/types/llm_parameters.py,sha256=I-b__6OZhobxneSOTWfoug2xJr6HBljanHVXU6
33
33
  vectorvein/types/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  vectorvein/utilities/media_processing.py,sha256=CTRq-lGlFkFgP_FSRhNwF_qUgmOrXPf2_1Ok9HY42_g,5887
35
35
  vectorvein/utilities/retry.py,sha256=6KFS9R2HdhqM3_9jkjD4F36ZSpEx2YNFGOVlpOsUetM,2208
36
- vectorvein-0.1.76.dist-info/RECORD,,
36
+ vectorvein-0.1.77.dist-info/RECORD,,