crewplus 0.2.54__tar.gz → 0.2.55__tar.gz

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.

Files changed (24) hide show
  1. {crewplus-0.2.54 → crewplus-0.2.55}/PKG-INFO +1 -1
  2. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/vectorstores/milvus/vdb_service.py +10 -4
  3. {crewplus-0.2.54 → crewplus-0.2.55}/pyproject.toml +1 -1
  4. {crewplus-0.2.54 → crewplus-0.2.55}/LICENSE +0 -0
  5. {crewplus-0.2.54 → crewplus-0.2.55}/README.md +0 -0
  6. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/__init__.py +0 -0
  7. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/callbacks/__init__.py +0 -0
  8. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/callbacks/async_langfuse_handler.py +0 -0
  9. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/__init__.py +0 -0
  10. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/azure_chat_model.py +0 -0
  11. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/gemini_chat_model.py +0 -0
  12. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/init_services.py +0 -0
  13. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/model_load_balancer.py +0 -0
  14. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/tracing_manager.py +0 -0
  15. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/utils/__init__.py +0 -0
  16. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/utils/schema_action.py +0 -0
  17. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/utils/schema_document_updater.py +0 -0
  18. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/vectorstores/milvus/__init__.py +0 -0
  19. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/vectorstores/milvus/milvus_schema_manager.py +0 -0
  20. {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/vectorstores/milvus/schema_milvus.py +0 -0
  21. {crewplus-0.2.54 → crewplus-0.2.55}/docs/GeminiChatModel.md +0 -0
  22. {crewplus-0.2.54 → crewplus-0.2.55}/docs/ModelLoadBalancer.md +0 -0
  23. {crewplus-0.2.54 → crewplus-0.2.55}/docs/VDBService.md +0 -0
  24. {crewplus-0.2.54 → crewplus-0.2.55}/docs/index.md +0 -0
@@ -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
@@ -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
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "crewplus"
9
- version = "0.2.54"
9
+ version = "0.2.55"
10
10
  description = "Base services for CrewPlus AI applications"
11
11
  authors = [
12
12
  { name = "Tim Liu", email = "tim@opsmateai.com" },
File without changes
File without changes
File without changes
File without changes