vectorvein 0.2.22__py3-none-any.whl → 0.2.23__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.
@@ -148,6 +148,12 @@ class Settings(BaseModel):
148
148
  backends[model_type] = BackendSettings(models=default_models)
149
149
 
150
150
  for endpoint in data.get("endpoints", []):
151
+ if endpoint.get("is_azure"):
152
+ endpoint["endpoint_type"] = "openai_azure"
153
+ if endpoint.get("is_vertex"):
154
+ endpoint["endpoint_type"] = "anthropic_vertex"
155
+ if endpoint.get("is_bedrock"):
156
+ endpoint["endpoint_type"] = "anthropic_bedrock"
151
157
  if not endpoint.get("api_base"):
152
158
  continue
153
159
  api_base = endpoint["api_base"]
@@ -159,7 +165,7 @@ class Settings(BaseModel):
159
165
 
160
166
  def load(self, settings: SettingsDict | "Settings"):
161
167
  if isinstance(settings, Settings):
162
- settings_dict = settings.model_dump()
168
+ settings_dict = settings.export()
163
169
  else:
164
170
  settings_dict = settings
165
171
  self.__init__(**settings_dict)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectorvein
3
- Version: 0.2.22
3
+ Version: 0.2.23
4
4
  Summary: VectorVein Python SDK
5
5
  Author-Email: Anderson <andersonby@163.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
- vectorvein-0.2.22.dist-info/METADATA,sha256=0ieuDuHWOgzKsC97jdtfo2Y-8Oi8ez40v14NIMHGDIg,4414
2
- vectorvein-0.2.22.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- vectorvein-0.2.22.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
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
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
@@ -29,7 +29,7 @@ vectorvein/chat_clients/yi_client.py,sha256=RNf4CRuPJfixrwLZ3-DEc3t25QDe1mvZeb9s
29
29
  vectorvein/chat_clients/zhipuai_client.py,sha256=Ys5DSeLCuedaDXr3PfG1EW2zKXopt-awO2IylWSwY0s,519
30
30
  vectorvein/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  vectorvein/server/token_server.py,sha256=36F9PKSNOX8ZtYBXY_l-76GQTpUSmQ2Y8EMy1H7wtdQ,1353
32
- vectorvein/settings/__init__.py,sha256=fqOfdTZ_b1P1Mx_6rFOUkgaSqS06hvrjzIQArRUPjU0,10849
32
+ vectorvein/settings/__init__.py,sha256=3Kw3hbvqcIQepAR6Q2m2UXbBnwyJTUm8yAz-aHmbUTg,11163
33
33
  vectorvein/settings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  vectorvein/types/__init__.py,sha256=DJYGhlshgUQgzXPfMfKW5sTpBClZUCLhqmCqF44lVuU,3329
35
35
  vectorvein/types/defaults.py,sha256=wNPrfYDwsXMNIxofgGdN-ix9-by6WQu3cGIRySl3Q2E,27350
@@ -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.22.dist-info/RECORD,,
65
+ vectorvein-0.2.23.dist-info/RECORD,,