mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-22 14:48:13 +00:00
Fix event listener to pass event parameter for enhanced error display
- Updated on_llm_call_failed to pass the event object to handle_llm_call_failed - This enables the console formatter to display enhanced error details - Completes the integration of enhanced error handling for custom endpoints Co-Authored-By: Jo\u00E3o <joao@crewai.com>
This commit is contained in:
@@ -361,6 +361,7 @@ class EventListener(BaseEventListener):
|
|||||||
self.formatter.current_tool_branch,
|
self.formatter.current_tool_branch,
|
||||||
event.error,
|
event.error,
|
||||||
self.formatter.current_crew_tree,
|
self.formatter.current_crew_tree,
|
||||||
|
event,
|
||||||
)
|
)
|
||||||
|
|
||||||
@crewai_event_bus.on(LLMStreamChunkEvent)
|
@crewai_event_bus.on(LLMStreamChunkEvent)
|
||||||
|
|||||||
Reference in New Issue
Block a user