vectorvein 0.2.8__py3-none-any.whl → 0.2.10__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.
@@ -411,6 +411,15 @@ class BaseChatClient(ABC):
411
411
  timeout=timeout,
412
412
  )
413
413
 
414
+ def model_list(self):
415
+ _raw_client = self.raw_client
416
+ if isinstance(_raw_client, (OpenAI, AzureOpenAI)):
417
+ return _raw_client.models.list().model_dump()
418
+ elif isinstance(_raw_client, Anthropic):
419
+ return _raw_client.models.list(limit=1000).model_dump()
420
+ else:
421
+ raise ValueError(f"Unsupported client type: {type(_raw_client)}")
422
+
414
423
 
415
424
  class BaseAsyncChatClient(ABC):
416
425
  DEFAULT_MODEL: str
@@ -788,3 +797,12 @@ class BaseAsyncChatClient(ABC):
788
797
  extra_body=extra_body,
789
798
  timeout=timeout,
790
799
  )
800
+
801
+ async def model_list(self):
802
+ _raw_client = self.raw_client
803
+ if isinstance(_raw_client, (AsyncOpenAI, AsyncAzureOpenAI)):
804
+ return (await _raw_client.models.list()).model_dump()
805
+ elif isinstance(_raw_client, AsyncAnthropic):
806
+ return (await _raw_client.models.list(limit=1000)).model_dump()
807
+ else:
808
+ raise ValueError(f"Unsupported client type: {type(_raw_client)}")
@@ -8,10 +8,12 @@ from pydantic import BaseModel, Field
8
8
  from anthropic._types import NotGiven as AnthropicNotGiven
9
9
  from anthropic._types import NOT_GIVEN as ANTHROPIC_NOT_GIVEN
10
10
  from anthropic.types import ToolParam as AnthropicToolParam
11
+ from anthropic.types import ThinkingConfigParam, ThinkingConfigEnabledParam
11
12
  from anthropic.types.message_create_params import ToolChoice as AnthropicToolChoice
12
13
 
13
14
  from openai._types import NotGiven as OpenAINotGiven
14
15
  from openai._types import NOT_GIVEN as OPENAI_NOT_GIVEN
16
+ from openai.types.chat.completion_create_params import ResponseFormat
15
17
  from openai.types.chat.chat_completion_chunk import ChoiceDeltaToolCall
16
18
  from openai.types.chat.chat_completion_tool_param import ChatCompletionToolParam
17
19
  from openai.types.completion_usage import CompletionTokensDetails, PromptTokensDetails
@@ -153,4 +155,7 @@ __all__ = [
153
155
  "AnthropicToolChoice",
154
156
  "OPENAI_NOT_GIVEN",
155
157
  "ANTHROPIC_NOT_GIVEN",
158
+ "ResponseFormat",
159
+ "ThinkingConfigParam",
160
+ "ThinkingConfigEnabledParam",
156
161
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectorvein
3
- Version: 0.2.8
3
+ Version: 0.2.10
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.8.dist-info/METADATA,sha256=YfA3gyoDcHXrAq7_2q97ohi-jCLHrqedA6fCE4CnARQ,4413
2
- vectorvein-0.2.8.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- vectorvein-0.2.8.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ vectorvein-0.2.10.dist-info/METADATA,sha256=Drs6uKwNLAN9Gh-FmMJnOfEcoNBviytd2HSxJ_OFe6c,4414
2
+ vectorvein-0.2.10.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ vectorvein-0.2.10.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
@@ -9,7 +9,7 @@ vectorvein/api/models.py,sha256=xtPWMsB0yIJI7i-gY4B6MtvXv0ZIXnoeKspmeInH6fU,1449
9
9
  vectorvein/chat_clients/__init__.py,sha256=1ElJPca32YqSxD4dWTHkTEWhiJE_N6J-e5ZGilpT7ks,19178
10
10
  vectorvein/chat_clients/anthropic_client.py,sha256=Yx0H2kW-XWOZId9Dnzke5eWWS8FqMf6OfgczZF7yeuM,58192
11
11
  vectorvein/chat_clients/baichuan_client.py,sha256=CVMvpgjdrZGv0BWnTOBD-f2ufZ3wq3496wqukumsAr4,526
12
- vectorvein/chat_clients/base_client.py,sha256=RcAJwwJ83qC73t3W7GoPNvQXb-qPJ7d8U1J5nwzcYls,37044
12
+ vectorvein/chat_clients/base_client.py,sha256=35K_4kS9UnZA68utauh6GcV3IW-GutAMYr_jpb3eYt0,37863
13
13
  vectorvein/chat_clients/deepseek_client.py,sha256=3qWu01NlJAP2N-Ff62d5-CZXZitlizE1fzb20LNetig,526
14
14
  vectorvein/chat_clients/gemini_client.py,sha256=ufovIZrmAE3RLEe8h5WXombf7bARAZxnkj6ydNK2FQM,475
15
15
  vectorvein/chat_clients/groq_client.py,sha256=Uow4pgdmFi93ZQSoOol2-0PhhqkW-S0XuSldvppz5U4,498
@@ -33,7 +33,7 @@ vectorvein/settings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
33
33
  vectorvein/types/defaults.py,sha256=VrkQoyHqC_eK3g1b6egpPYLLo0ltwMHqxDscCX4y-N0,27417
34
34
  vectorvein/types/enums.py,sha256=7KTJSVtQueImmbr1fSwv3rQVtc0RyMWXJmoE2tDOaso,1667
35
35
  vectorvein/types/exception.py,sha256=gnW4GnJ76jND6UGnodk9xmqkcbeS7Cz2rvncA2HpD5E,69
36
- vectorvein/types/llm_parameters.py,sha256=k6GHUWraVQo7HJcirX1o0sCTSxVSTWC6Ja1bk8gDxGo,6105
36
+ vectorvein/types/llm_parameters.py,sha256=uby71bteIHmZ3YtFBDbapOaQunBVqcI5qAfQmjWlniM,6339
37
37
  vectorvein/types/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  vectorvein/utilities/media_processing.py,sha256=7KtbLFzOYIn1e9QTN9G6C76NH8CBlV9kfAgiRKEIeXY,6263
39
39
  vectorvein/utilities/rate_limiter.py,sha256=dwolIUVw2wP83Odqpx0AAaE77de1GzxkYDGH4tM_u_4,10300
@@ -59,4 +59,4 @@ vectorvein/workflow/nodes/vector_db.py,sha256=t6I17q6iR3yQreiDHpRrksMdWDPIvgqJs0
59
59
  vectorvein/workflow/nodes/video_generation.py,sha256=qmdg-t_idpxq1veukd-jv_ChICMOoInKxprV9Z4Vi2w,4118
60
60
  vectorvein/workflow/nodes/web_crawlers.py,sha256=LsqomfXfqrXfHJDO1cl0Ox48f4St7X_SL12DSbAMSOw,5415
61
61
  vectorvein/workflow/utils/json_to_code.py,sha256=F7dhDy8kGc8ndOeihGLRLGFGlquoxVlb02ENtxnQ0C8,5914
62
- vectorvein-0.2.8.dist-info/RECORD,,
62
+ vectorvein-0.2.10.dist-info/RECORD,,