crewplus 0.2.41__tar.gz → 0.2.42__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.
- {crewplus-0.2.41 → crewplus-0.2.42}/PKG-INFO +1 -1
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/callbacks/async_langfuse_handler.py +5 -1
- {crewplus-0.2.41 → crewplus-0.2.42}/pyproject.toml +1 -1
- {crewplus-0.2.41 → crewplus-0.2.42}/LICENSE +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/README.md +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/__init__.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/callbacks/__init__.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/__init__.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/azure_chat_model.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/gemini_chat_model.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/init_services.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/model_load_balancer.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/tracing_manager.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/utils/__init__.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/utils/schema_action.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/utils/schema_document_updater.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/vectorstores/milvus/__init__.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/vectorstores/milvus/milvus_schema_manager.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/vectorstores/milvus/schema_milvus.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/vectorstores/milvus/vdb_service.py +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/docs/GeminiChatModel.md +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/docs/ModelLoadBalancer.md +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/docs/VDBService.md +0 -0
- {crewplus-0.2.41 → crewplus-0.2.42}/docs/index.md +0 -0
|
@@ -50,8 +50,12 @@ class AsyncLangfuseCallbackHandler(AsyncCallbackHandler):
|
|
|
50
50
|
async def on_llm_start(
|
|
51
51
|
self, serialized: Dict[str, Any], prompts: List[str], **kwargs: Any
|
|
52
52
|
) -> None:
|
|
53
|
+
# WORKAROUND: LangChain's async implementation can sometimes pass a raw
|
|
54
|
+
# string for prompts instead of a list. We wrap it in a list to ensure
|
|
55
|
+
# compatibility with the synchronous handler.
|
|
56
|
+
corrected_prompts = prompts if isinstance(prompts, list) else [prompts]
|
|
53
57
|
await asyncio.to_thread(
|
|
54
|
-
self.sync_handler.on_llm_start, serialized,
|
|
58
|
+
self.sync_handler.on_llm_start, serialized, corrected_prompts, **kwargs
|
|
55
59
|
)
|
|
56
60
|
|
|
57
61
|
async def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|