mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-27 09:08:14 +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(
|
crewai_event_bus.emit(
|
||||||
self,
|
self,
|
||||||
event=LLMCallCompletedEvent(
|
event=LLMCallCompletedEvent(response=response, call_type=call_type),
|
||||||
response=response, call_type=LLMCallType(call_type)
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def _format_messages_for_provider(
|
def _format_messages_for_provider(
|
||||||
|
|||||||
Reference in New Issue
Block a user