Skip to content

Commit

Permalink
remove initial message dup from the transcript (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 authored May 19, 2023
1 parent b37bf7a commit eff25a2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions vocode/streaming/streaming_conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,16 +502,10 @@ async def start(self, mark_ready: Optional[Callable[[], Awaitable[None]]] = None
self.agent.start()
if mark_ready:
await mark_ready()
initial_message = self.agent.get_agent_config().initial_message
if initial_message is not None:
self.transcript.add_bot_message(
text=initial_message.text,
events_manager=self.events_manager,
conversation_id=self.id,
)
if self.synthesizer.get_synthesizer_config().sentiment_config:
self.update_bot_sentiment()
if self.agent.get_agent_config().initial_message:
initial_message = self.agent.get_agent_config().initial_message
if initial_message is not None:
event = self.enqueue_interruptible_event(
self.agent.get_agent_config().initial_message,
is_interruptible=False,
Expand Down

0 comments on commit eff25a2

Please sign in to comment.