vectorvein 0.1.0__py3-none-any.whl → 0.1.1__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.
@@ -120,6 +120,8 @@ class OpenAICompatibleChatClient(BaseChatClient):
120
120
  for chunk in response:
121
121
  if len(chunk.choices) == 0:
122
122
  continue
123
+ if not chunk.choices[0].delta:
124
+ continue
123
125
  if self.model_setting.function_call_available:
124
126
  yield chunk.choices[0].delta.model_dump()
125
127
  else:
@@ -255,6 +257,8 @@ class AsyncOpenAICompatibleChatClient(BaseAsyncChatClient):
255
257
  async for chunk in response:
256
258
  if len(chunk.choices) == 0:
257
259
  continue
260
+ if not chunk.choices[0].delta:
261
+ continue
258
262
  if self.model_setting.function_call_available:
259
263
  yield chunk.choices[0].delta.model_dump()
260
264
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectorvein
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Default template for PDM package
5
5
  Author-Email: Anderson <andersonby@163.com>
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
- vectorvein-0.1.0.dist-info/METADATA,sha256=C-7fT6b_ae8vKQQhvxRmr0oSGmkuDW6ZasyJmFv7Ngk,422
2
- vectorvein-0.1.0.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
1
+ vectorvein-0.1.1.dist-info/METADATA,sha256=pWX5z4EA3jmbcbo3DhmSx8JIGVKL2w0jKGaDb1XXdg0,422
2
+ vectorvein-0.1.1.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
3
3
  vectorvein/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  vectorvein/chat_clients/__init__.py,sha256=H7QU9Tv2mpJe1Sv5tcw3LM6ulC9tR4be7RmX3B7FECE,3874
5
5
  vectorvein/chat_clients/anthropic_client.py,sha256=sH6tZHYeZ4WncHtALvbx7axmY8YFOn8JDJKgTgIpqbw,18025
@@ -12,7 +12,7 @@ vectorvein/chat_clients/minimax_client.py,sha256=x6PCSV8uYz_khfAL87q0IrbFEh6hWq5
12
12
  vectorvein/chat_clients/mistral_client.py,sha256=1aKSylzBDaLYcFnaBIL4-sXSzWmXfBeON9Q0rq-ziWw,534
13
13
  vectorvein/chat_clients/moonshot_client.py,sha256=gbu-6nGxx8uM_U2WlI4Wus881rFRotzHtMSoYOcruGU,526
14
14
  vectorvein/chat_clients/openai_client.py,sha256=Nz6tV45pWcsOupxjnsRsGTicbQNJWIZyxuJoJ5DGMpg,527
15
- vectorvein/chat_clients/openai_compatible_client.py,sha256=s4eeIqsDYxwPzbU4zAD9by8QRFajqNXUic1sQWHMoRc,11318
15
+ vectorvein/chat_clients/openai_compatible_client.py,sha256=-cDw1Axf9wHYSj2EOw8vZnATm9yVOPS4_Z31U31d0BI,11490
16
16
  vectorvein/chat_clients/qwen_client.py,sha256=-ryh-m9PgsO0fc4ulcCmPTy1155J8YUy15uPoJQOHA0,513
17
17
  vectorvein/chat_clients/utils.py,sha256=nz1hpK6uOFRdCcWrNrctkCqbeXSgOogDtOyDkS47jDU,25591
18
18
  vectorvein/chat_clients/yi_client.py,sha256=RNf4CRuPJfixrwLZ3-DEc3t25QDe1mvZeb9sku2f8Bc,484
@@ -22,4 +22,4 @@ vectorvein/types/defaults.py,sha256=Mg-Mj3_eBzKZn1N8x1V2GqyaYgLD13i-NdSYdQC28X4,
22
22
  vectorvein/types/enums.py,sha256=vzOenCnRlFXBwPh-lfFhjGfM-6yfDj7wZColHODqocI,1550
23
23
  vectorvein/types/llm_parameters.py,sha256=88CwRQ3oCY35nPlCCcLk9T3jofKqT876CexXiB7ExQ8,3101
24
24
  vectorvein/utilities/media_processing.py,sha256=BujciRmw1GMmc3ELRvafL8STcy6r5b2rVnh27-uA7so,2256
25
- vectorvein-0.1.0.dist-info/RECORD,,
25
+ vectorvein-0.1.1.dist-info/RECORD,,