crewplus 0.2.54__tar.gz → 0.2.56__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.56}/PKG-INFO +1 -1
  2. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/vectorstores/milvus/vdb_service.py +9 -7
  3. {crewplus-0.2.54 → crewplus-0.2.56}/pyproject.toml +1 -1
  4. {crewplus-0.2.54 → crewplus-0.2.56}/LICENSE +0 -0
  5. {crewplus-0.2.54 → crewplus-0.2.56}/README.md +0 -0
  6. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/__init__.py +0 -0
  7. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/callbacks/__init__.py +0 -0
  8. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/callbacks/async_langfuse_handler.py +0 -0
  9. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/services/__init__.py +0 -0
  10. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/services/azure_chat_model.py +0 -0
  11. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/services/gemini_chat_model.py +0 -0
  12. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/services/init_services.py +0 -0
  13. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/services/model_load_balancer.py +0 -0
  14. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/services/tracing_manager.py +0 -0
  15. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/utils/__init__.py +0 -0
  16. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/utils/schema_action.py +0 -0
  17. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/utils/schema_document_updater.py +0 -0
  18. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/vectorstores/milvus/__init__.py +0 -0
  19. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/vectorstores/milvus/milvus_schema_manager.py +0 -0
  20. {crewplus-0.2.54 → crewplus-0.2.56}/crewplus/vectorstores/milvus/schema_milvus.py +0 -0
  21. {crewplus-0.2.54 → crewplus-0.2.56}/docs/GeminiChatModel.md +0 -0
  22. {crewplus-0.2.54 → crewplus-0.2.56}/docs/ModelLoadBalancer.md +0 -0
  23. {crewplus-0.2.54 → crewplus-0.2.56}/docs/VDBService.md +0 -0
  24. {crewplus-0.2.54 → crewplus-0.2.56}/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.56
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,20 @@ 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
550
-
551
- vdb = await asyncio.to_thread(
552
- 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(
553
550
  collection_name=collection_name,
554
551
  embeddings=embeddings,
555
552
  index_params=index_params,
556
- connection_args=async_connection_args
553
+ connection_args=self.connection_args # This uses the sync_alias by default
557
554
  )
558
555
 
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
560
+
559
561
  self._async_instances[collection_name] = vdb
560
562
 
561
563
  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.56"
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