This commit is contained in:
2023-10-21 23:30:49 +08:00
parent 47ca0639da
commit abf1ce6d6c
2 changed files with 6 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ async def message_callback(room: MatrixRoom, event: RoomMessageAudio):
filelikeobj = io.BytesIO(resp.body)
filelikeobj.name = "matrixaudio.ogg"
# get prompt
rows = await client.db.execute(
rows = await client.db.fetch_all(
query="""select content from (
select role, content, sum(token) over (partition by root order by id desc) as total_token
from memories