mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
refactor: Simplify LLM call completed event emission
Remove unnecessary LLMCallType conversion when emitting LLMCallCompletedEvent
This commit is contained in:
@@ -410,9 +410,7 @@ class LLM:
|
||||
"""
|
||||
crewai_event_bus.emit(
|
||||
self,
|
||||
event=LLMCallCompletedEvent(
|
||||
response=response, call_type=LLMCallType(call_type)
|
||||
),
|
||||
event=LLMCallCompletedEvent(response=response, call_type=call_type),
|
||||
)
|
||||
|
||||
def _format_messages_for_provider(
|
||||
|
||||
Reference in New Issue
Block a user