Tortoise based database models
This commit is contained in:
1 parent
2c7b3d61d1
commit
cccdb7d231
12 files changed
+469
-382
No files matched your search
@@ -68,7 +68,7 @@ class ExpertAgent(Agent):
|
||||
return response
|
||||
|
||||
async def received_message(self, message):
|
||||
chat_view = self.app.get_chat_view(message.chat_id)
|
||||
chat_view = await self.app.get_chat_view(message.chat_id)
|
||||
thread = chat_view.get_thread(message.thread_id)
|
||||
|
||||
def msg_role(message):
|
||||
@@ -90,7 +90,7 @@ class ExpertAgent(Agent):
|
||||
messages=messages
|
||||
)
|
||||
|
||||
self.app.send_chat_message(
|
||||
await self.app.send_chat_message(
|
||||
chat_id=message.chat_id,
|
||||
sender=self.id,
|
||||
content=response,
|
||||
|
||||
Reference in new issue
Block a user