crewplus 0.2.54__py3-none-any.whl → 0.2.55__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.

Potentially problematic release.


This version of crewplus might be problematic. Click here for more details.

@@ -544,18 +544,24 @@ class VDBService(object):
544
544
  "params": {}
545
545
  }
546
546
 
547
- # Prepare connection args with the specific async alias
548
- async_connection_args = self.connection_args.copy()
549
- async_connection_args["alias"] = self.async_alias
547
+ # For async, we MUST instantiate Milvus with a sync alias because its __init__ is sync.
548
+ # Then, we hot-swap the client and alias for async operations.
549
+ sync_connection_args = self.connection_args.copy()
550
+ sync_connection_args["alias"] = self.sync_alias
550
551
 
551
552
  vdb = await asyncio.to_thread(
552
553
  self._create_milvus_instance_with_retry,
553
554
  collection_name=collection_name,
554
555
  embeddings=embeddings,
555
556
  index_params=index_params,
556
- connection_args=async_connection_args
557
+ connection_args=sync_connection_args
557
558
  )
558
559
 
560
+ # Hot-swap to the async client and alias for async operations.
561
+ self.logger.debug(f"Swapping to async client for instance of collection {collection_name}")
562
+ vdb.alias = self.async_alias
563
+ vdb.aclient = self._async_client
564
+
559
565
  self._async_instances[collection_name] = vdb
560
566
 
561
567
  return vdb
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: crewplus
3
- Version: 0.2.54
3
+ Version: 0.2.55
4
4
  Summary: Base services for CrewPlus AI applications
5
5
  Author-Email: Tim Liu <tim@opsmateai.com>
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
- crewplus-0.2.54.dist-info/METADATA,sha256=tn8jWFpBPtn-wPK6Jsy_aaNgbExmpOq8_ZT4fLx00TU,5459
2
- crewplus-0.2.54.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
- crewplus-0.2.54.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
- crewplus-0.2.54.dist-info/licenses/LICENSE,sha256=2_NHSHRTKB_cTcT_GXgcenOCtIZku8j343mOgAguTfc,1087
1
+ crewplus-0.2.55.dist-info/METADATA,sha256=4lgvhOtJ-NJjzxu9BRQqECPG8HQpzX7x05wFoyZwlSY,5459
2
+ crewplus-0.2.55.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
+ crewplus-0.2.55.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ crewplus-0.2.55.dist-info/licenses/LICENSE,sha256=2_NHSHRTKB_cTcT_GXgcenOCtIZku8j343mOgAguTfc,1087
5
5
  crewplus/__init__.py,sha256=m46HkZL1Y4toD619NL47Sn2Qe084WFFSFD7e6VoYKZc,284
6
6
  crewplus/callbacks/__init__.py,sha256=YG7ieeb91qEjp1zF0-inEN7mjZ7yT_D2yzdWFT8Z1Ws,63
7
7
  crewplus/callbacks/async_langfuse_handler.py,sha256=A4uFeLpvOUdc58M7sZoE65_C1V98u0QCvx5jUquM0pM,7006
@@ -17,9 +17,9 @@ crewplus/utils/schema_document_updater.py,sha256=frvffxn2vbi71fHFPoGb9hq7gH2azmm
17
17
  crewplus/vectorstores/milvus/__init__.py,sha256=OeYv2rdyG7tcREIjBJPyt2TbE54NvyeRoWMe7LwopRE,245
18
18
  crewplus/vectorstores/milvus/milvus_schema_manager.py,sha256=-QRav-hzu-XWeJ_yKUMolal_EyMUspSg-nvh5sqlrlQ,11442
19
19
  crewplus/vectorstores/milvus/schema_milvus.py,sha256=wwNpfqsKS0xeozZES40IvB0iNwUtpCall_7Hkg0dL1g,27223
20
- crewplus/vectorstores/milvus/vdb_service.py,sha256=mlSkCzqxxsew3JZ-qjNCvH116MP88Bx26_SU3789vyc,34093
20
+ crewplus/vectorstores/milvus/vdb_service.py,sha256=D1sOxmvwAKF3iAd3cQxoKyhCwja-NE1M35lSfWOSzUo,34448
21
21
  docs/GeminiChatModel.md,sha256=zZYyl6RmjZTUsKxxMiC9O4yV70MC4TD-IGUmWhIDBKA,8677
22
22
  docs/ModelLoadBalancer.md,sha256=aGHES1dcXPz4c7Y8kB5-vsCNJjriH2SWmjBkSGoYKiI,4398
23
23
  docs/VDBService.md,sha256=Dw286Rrf_fsi13jyD3Bo4Sy7nZ_G7tYm7d8MZ2j9hxk,9375
24
24
  docs/index.md,sha256=3tlc15uR8lzFNM5WjdoZLw0Y9o1P1gwgbEnOdIBspqc,1643
25
- crewplus-0.2.54.dist-info/RECORD,,
25
+ crewplus-0.2.55.dist-info/RECORD,,