Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c007c4801 |
BIN
ai_chat.db
BIN
ai_chat.db
Binary file not shown.
2
main.py
2
main.py
@@ -258,7 +258,7 @@ async def websocket_endpoint(websocket: WebSocket, user_id: str, db: Session = D
|
|||||||
|
|
||||||
# 同步到Matrix(如果有房间)
|
# 同步到Matrix(如果有房间)
|
||||||
if matrix_bot.is_running and matrix_bot.last_room_id:
|
if matrix_bot.is_running and matrix_bot.last_room_id:
|
||||||
await matrix_bot.send_message(matrix_bot.last_room_id, f"[网页] {message}")
|
await matrix_bot.send_message(matrix_bot.last_room_id, message)
|
||||||
|
|
||||||
# 获取对话历史
|
# 获取对话历史
|
||||||
history = conv_service.get_conversation_history(conversation_id, limit=20)
|
history = conv_service.get_conversation_history(conversation_id, limit=20)
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
@tester:matrix.tphai.com AJFVRTHLJY matrix-ed25519 4mRjLhM8xbwjkwQP2T/iB3UZJoaADgP6cCVUiB8AtSk
|
||||||
|
@tester:matrix.tphai.com GVSFGGYNJL matrix-ed25519 8qV2own4G3m2nki+izFDBOrAxtbGl8RoneM3qUPkThU
|
||||||
|
@tester:matrix.tphai.com IMEQIQPXTR matrix-ed25519 6Yd4lmhP6jdkkNvh1rIw6TRK331ZUyiAt5G5hPeYqSE
|
||||||
|
@tester:matrix.tphai.com MIPPYHRVAS matrix-ed25519 s8Ol56sxLCjCOi0Gkv/Kj7LqVMp/8ZmuAJ6QA1rUi7o
|
||||||
|
@huangzhuang_bro:matrix.tphai.com BQHGFLQEPR matrix-ed25519 IrEHmvqotfHKLyx1JRJp4RthUVyBT8qQX72qBifRRyQ
|
||||||
Reference in New Issue
Block a user