Skip to content

Commit

Permalink
fix 5
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhjdsingh committed Jul 5, 2024
1 parent f171f07 commit da5052f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions bolna/agent_manager/assistant_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def __init__(self, agent_config, ws=None, assistant_id=None, context_data=None,
self.output_queue = output_queue
self.kwargs = kwargs
self.conversation_history = conversation_history
logger.info("####")
self.kwargs['agent_welcome_message'] = agent_config.get('agent_welcome_message', AGENT_WELCOME_MESSAGE)
logger.info("####")
self.kwargs['agent_welcome_message'] = update_prompt_with_context(agent_config.get('agent_welcome_message', AGENT_WELCOME_MESSAGE), context_data)

async def run(self, local=False, run_id=None):
"""
Expand Down
3 changes: 1 addition & 2 deletions examples/daily/quickstart_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ async def websocket_endpoint(agent_id: str, websocket: WebSocket, user_agent: st
except Exception as e:
traceback.print_exc()
raise HTTPException(status_code=404, detail="Agent not found")

assistant_manager = AssistantManager(agent_config, websocket, agent_id, room_url)
assistant_manager = AssistantManager(agent_config, websocket, agent_id, room_url=room_url)

try:
async for index, task_output in assistant_manager.run(local=True):
Expand Down

0 comments on commit da5052f

Please sign in to comment.