fix delete chat bug and update fastapi http file

This commit is contained in:
Xin Wang
2026-01-08 17:32:06 +08:00
parent d5f81ef79f
commit 32c491cd3f
2 changed files with 22 additions and 147 deletions

View File

@@ -77,6 +77,7 @@ async def delete_last_two_chat_records(
return
last_two_data_ids = [record['dataId'] for record in records[-2:]]
logger.info(f"last_two_data_ids: {last_two_data_ids}")
# Delete records using SDK
for content_id in last_two_data_ids: