crewplus 0.2.55__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.55 → crewplus-0.2.56}/PKG-INFO +1 -1
  2. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/vectorstores/milvus/vdb_service.py +8 -12
  3. {crewplus-0.2.55 → crewplus-0.2.56}/pyproject.toml +1 -1
  4. {crewplus-0.2.55 → crewplus-0.2.56}/LICENSE +0 -0
  5. {crewplus-0.2.55 → crewplus-0.2.56}/README.md +0 -0
  6. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/__init__.py +0 -0
  7. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/callbacks/__init__.py +0 -0
  8. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/callbacks/async_langfuse_handler.py +0 -0
  9. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/__init__.py +0 -0
  10. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/azure_chat_model.py +0 -0
  11. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/gemini_chat_model.py +0 -0
  12. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/init_services.py +0 -0
  13. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/model_load_balancer.py +0 -0
  14. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/tracing_manager.py +0 -0
  15. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/utils/__init__.py +0 -0
  16. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/utils/schema_action.py +0 -0
  17. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/utils/schema_document_updater.py +0 -0
  18. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/vectorstores/milvus/__init__.py +0 -0
  19. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/vectorstores/milvus/milvus_schema_manager.py +0 -0
  20. {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/vectorstores/milvus/schema_milvus.py +0 -0
  21. {crewplus-0.2.55 → crewplus-0.2.56}/docs/GeminiChatModel.md +0 -0
  22. {crewplus-0.2.55 → crewplus-0.2.56}/docs/ModelLoadBalancer.md +0 -0
  23. {crewplus-0.2.55 → crewplus-0.2.56}/docs/VDBService.md +0 -0
  24. {crewplus-0.2.55 → 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.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
@@ -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
 
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "crewplus"
9
- version = "0.2.55"
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