Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
seshubonam authored Jul 29, 2024
1 parent 76ec503 commit 8f5cf12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(
'''
self.bot_db.execute(create_table)

self.workflow = True
self.workflow = False
self.streaming = streaming

if type == "WORKFLOW":
Expand Down Expand Up @@ -257,7 +257,7 @@ async def message_callback(self, room: MatrixRoom, event: RoomMessageText) -> No
api_url = f"{self.superagent_url}/api/v1/workflows/{self.workflow_id}/invoke"
get_steps = await workflow_steps(self.superagent_url, self.workflow_id, self.api_key, self.httpx_client)
self.msg_limit[sender_id] += len(get_steps)
await stream_workflow(api_url, self.api_key, content_body, get_steps, thread_event_id, reply_to_event_id, room_id, self.httpx_client, self.user_id, userEmail, self.msg_limit[sender_id])
await stream_workflow(api_url, self.api_key, content_body, get_steps, thread_event_id, reply_to_event_id, room_id, self.httpx_client, self.user_id, userEmail, self.msg_limit[sender_id], single_bot=not self.streaming)
return

result = await superagent_invoke(self.superagent_url, self.agent_id, content_body, self.api_key, self.httpx_client, thread_event_id)
Expand Down

0 comments on commit 8f5cf12

Please sign in to comment.