crewplus 0.2.55__py3-none-any.whl → 0.2.56__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,23 +544,19 @@ class VDBService(object):
544
544
  "params": {}
545
545
  }
546
546
 
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
551
-
552
- vdb = await asyncio.to_thread(
553
- self._create_milvus_instance_with_retry,
547
+ # For async operations, we MUST instantiate the Milvus object using the SYNCHRONOUS alias
548
+ # because its __init__ method is synchronous.
549
+ vdb = self._create_milvus_instance_with_retry(
554
550
  collection_name=collection_name,
555
551
  embeddings=embeddings,
556
552
  index_params=index_params,
557
- connection_args=sync_connection_args
553
+ connection_args=self.connection_args # This uses the sync_alias by default
558
554
  )
559
555
 
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
556
+ # After successful synchronous initialization, we hot-swap the alias on the
557
+ # ASYNCHRONOUS client to ensure future async operations use the correct connection.
558
+ self.logger.debug(f"Swapping to async alias for instance of collection {collection_name}")
559
+ vdb.aclient._using = self.async_alias
564
560
 
565
561
  self._async_instances[collection_name] = vdb
566
562
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: crewplus
3
- Version: 0.2.55
3
+ Version: 0.2.56
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.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
1
+ crewplus-0.2.56.dist-info/METADATA,sha256=ccwA_6ip1D6ZEviEIiTtshF4wqO54TS5THUBV7wDSJY,5459
2
+ crewplus-0.2.56.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
+ crewplus-0.2.56.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ crewplus-0.2.56.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=D1sOxmvwAKF3iAd3cQxoKyhCwja-NE1M35lSfWOSzUo,34448
20
+ crewplus/vectorstores/milvus/vdb_service.py,sha256=AomZTlwKaw1r_9xgWPVJGBJlJjMlwb-Jn1CWBSsS2Eg,34387
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.55.dist-info/RECORD,,
25
+ crewplus-0.2.56.dist-info/RECORD,,