Merge pull request #1042 from xunchahaha/api_dev

尝试优化了api性能
This commit is contained in:
xuncha
2026-05-31 11:23:46 +08:00
committed by GitHub
9 changed files with 1093 additions and 59 deletions

View File

@@ -4926,7 +4926,7 @@ class ChatService {
/**
* HTTP API 复用消息解析逻辑,确保和应用内展示一致。
*/
mapRowsToMessagesForApi(rows: Record<string, any>[], sessionId: string): Message[] {
mapRowsToMessagesForApi(rows: Record<string, any>[], sessionId: string = ''): Message[] {
return this.mapRowsToMessages(rows, sessionId)
}