fix: harden image handling and update docs

This commit is contained in:
2026-03-08 13:20:18 +08:00
parent 2e3409d8c5
commit fddd879ba0
8 changed files with 180 additions and 37 deletions

View File

@@ -388,7 +388,7 @@ def get_conversation(customer_id: str, limit: int = 200, acc_id: str = "") -> Li
with _get_conn() as conn:
rows = conn.execute(_sql("""
SELECT * FROM (
SELECT id, direction, message, msg_type, timestamp, acc_id
SELECT id, direction, message, msg_type, timestamp, acc_id, image_urls
FROM chat_logs
WHERE customer_id = ?
ORDER BY timestamp DESC, id DESC