vectorvein 0.1.47__py3-none-any.whl → 0.1.49__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.
- vectorvein/chat_clients/openai_compatible_client.py +11 -4
- vectorvein/types/defaults.py +10 -2
- {vectorvein-0.1.47.dist-info → vectorvein-0.1.49.dist-info}/METADATA +1 -1
- {vectorvein-0.1.47.dist-info → vectorvein-0.1.49.dist-info}/RECORD +6 -6
- {vectorvein-0.1.47.dist-info → vectorvein-0.1.49.dist-info}/WHEEL +0 -0
- {vectorvein-0.1.47.dist-info → vectorvein-0.1.49.dist-info}/entry_points.txt +0 -0
@@ -223,11 +223,14 @@ class OpenAICompatibleChatClient(BaseChatClient):
|
|
223
223
|
prompt_tokens=chunk.usage.prompt_tokens or 0,
|
224
224
|
total_tokens=chunk.usage.total_tokens or 0,
|
225
225
|
)
|
226
|
-
|
227
|
-
usage = None
|
226
|
+
|
228
227
|
if len(chunk.choices) == 0:
|
228
|
+
if usage:
|
229
|
+
yield ChatCompletionDeltaMessage(usage=usage)
|
229
230
|
continue
|
230
231
|
if not chunk.choices[0].delta:
|
232
|
+
if usage:
|
233
|
+
yield ChatCompletionDeltaMessage(usage=usage)
|
231
234
|
continue
|
232
235
|
if self.model_setting.function_call_available:
|
233
236
|
if chunk.choices[0].delta.tool_calls:
|
@@ -474,12 +477,16 @@ class AsyncOpenAICompatibleChatClient(BaseAsyncChatClient):
|
|
474
477
|
prompt_tokens=chunk.usage.prompt_tokens or 0,
|
475
478
|
total_tokens=chunk.usage.total_tokens or 0,
|
476
479
|
)
|
477
|
-
|
478
|
-
usage = None
|
480
|
+
|
479
481
|
if len(chunk.choices) == 0:
|
482
|
+
if usage:
|
483
|
+
yield ChatCompletionDeltaMessage(usage=usage)
|
480
484
|
continue
|
481
485
|
if not chunk.choices[0].delta:
|
486
|
+
if usage:
|
487
|
+
yield ChatCompletionDeltaMessage(usage=usage)
|
482
488
|
continue
|
489
|
+
|
483
490
|
if self.model_setting.function_call_available:
|
484
491
|
if chunk.choices[0].delta.tool_calls:
|
485
492
|
for index, tool_call in enumerate(chunk.choices[0].delta.tool_calls):
|
vectorvein/types/defaults.py
CHANGED
@@ -552,10 +552,18 @@ ANTHROPIC_MODELS: Final[Dict[str, Dict[str, Any]]] = {
|
|
552
552
|
"response_format_available": False,
|
553
553
|
"native_multimodal": True,
|
554
554
|
},
|
555
|
+
"claude-3-5-haiku-20241022": {
|
556
|
+
"id": "claude-3-5-haiku-20241022",
|
557
|
+
"context_length": 200000,
|
558
|
+
"max_output_tokens": 8192,
|
559
|
+
"function_call_available": True,
|
560
|
+
"response_format_available": False,
|
561
|
+
"native_multimodal": True,
|
562
|
+
},
|
555
563
|
"claude-3-5-sonnet-20240620": {
|
556
564
|
"id": "claude-3-5-sonnet-20240620",
|
557
565
|
"context_length": 200000,
|
558
|
-
"max_output_tokens":
|
566
|
+
"max_output_tokens": 8192,
|
559
567
|
"function_call_available": True,
|
560
568
|
"response_format_available": False,
|
561
569
|
"native_multimodal": True,
|
@@ -563,7 +571,7 @@ ANTHROPIC_MODELS: Final[Dict[str, Dict[str, Any]]] = {
|
|
563
571
|
"claude-3-5-sonnet-20241022": {
|
564
572
|
"id": "claude-3-5-sonnet-20241022",
|
565
573
|
"context_length": 200000,
|
566
|
-
"max_output_tokens":
|
574
|
+
"max_output_tokens": 8192,
|
567
575
|
"function_call_available": True,
|
568
576
|
"response_format_available": False,
|
569
577
|
"native_multimodal": True,
|
@@ -1,6 +1,6 @@
|
|
1
|
-
vectorvein-0.1.
|
2
|
-
vectorvein-0.1.
|
3
|
-
vectorvein-0.1.
|
1
|
+
vectorvein-0.1.49.dist-info/METADATA,sha256=D9HeuUQKiFdbkqnc5J9r8_Q9VsULK_RwwNFuTtBJLfQ,644
|
2
|
+
vectorvein-0.1.49.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
3
|
+
vectorvein-0.1.49.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=dW169oK1n3v8Z0uD8itghzlCP72rxiaS-XYn6fvI2xM,16788
|
6
6
|
vectorvein/chat_clients/anthropic_client.py,sha256=i1fMYSkUovd-Lc9B64bWMgzSTUFw4S3fj3AJ_pDokT4,34029
|
@@ -14,7 +14,7 @@ vectorvein/chat_clients/minimax_client.py,sha256=cLpSJ5vIaDi0Kmrt7XGlbjnlFnByJiI
|
|
14
14
|
vectorvein/chat_clients/mistral_client.py,sha256=1aKSylzBDaLYcFnaBIL4-sXSzWmXfBeON9Q0rq-ziWw,534
|
15
15
|
vectorvein/chat_clients/moonshot_client.py,sha256=gbu-6nGxx8uM_U2WlI4Wus881rFRotzHtMSoYOcruGU,526
|
16
16
|
vectorvein/chat_clients/openai_client.py,sha256=Nz6tV45pWcsOupxjnsRsGTicbQNJWIZyxuJoJ5DGMpg,527
|
17
|
-
vectorvein/chat_clients/openai_compatible_client.py,sha256=
|
17
|
+
vectorvein/chat_clients/openai_compatible_client.py,sha256=D2VmhpDVct4w2y58s87An7x22koOdkxSOKR2-so9lJI,22044
|
18
18
|
vectorvein/chat_clients/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
vectorvein/chat_clients/qwen_client.py,sha256=-ryh-m9PgsO0fc4ulcCmPTy1155J8YUy15uPoJQOHA0,513
|
20
20
|
vectorvein/chat_clients/stepfun_client.py,sha256=zsD2W5ahmR4DD9cqQTXmJr3txrGuvxbRWhFlRdwNijI,519
|
@@ -25,11 +25,11 @@ vectorvein/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
vectorvein/server/token_server.py,sha256=36F9PKSNOX8ZtYBXY_l-76GQTpUSmQ2Y8EMy1H7wtdQ,1353
|
26
26
|
vectorvein/settings/__init__.py,sha256=dyTCLhevXiKVJhOb1tjgZGMH38Indy4dkWVdDX543g0,3771
|
27
27
|
vectorvein/settings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
|
-
vectorvein/types/defaults.py,sha256=
|
28
|
+
vectorvein/types/defaults.py,sha256=orYqYQiQj8lj1wzsQdnyHWC3bSVYhRB14Zkm6qQDYcU,22661
|
29
29
|
vectorvein/types/enums.py,sha256=x_S0IJiEWijOAEiMNdiGDGEWGtmt7TwMriJVDqrDmTo,1637
|
30
30
|
vectorvein/types/exception.py,sha256=gnW4GnJ76jND6UGnodk9xmqkcbeS7Cz2rvncA2HpD5E,69
|
31
31
|
vectorvein/types/llm_parameters.py,sha256=5o-C_yXxxQWZy_e8OWowB2107GTS-Eawx4Mvb1q55Co,5256
|
32
32
|
vectorvein/types/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
vectorvein/utilities/media_processing.py,sha256=cnzLrU1OaJvSv87IOnc36FrDXtmGMDStPbxtIJ33YN4,5880
|
34
34
|
vectorvein/utilities/retry.py,sha256=6KFS9R2HdhqM3_9jkjD4F36ZSpEx2YNFGOVlpOsUetM,2208
|
35
|
-
vectorvein-0.1.
|
35
|
+
vectorvein-0.1.49.dist-info/RECORD,,
|
File without changes
|
File without changes
|