mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-11 03:33:48 +08:00
feat: allow to view chat message in manager console
This commit is contained in:
@@ -48,7 +48,7 @@ func (h *DashboardHandler) Stats(c *gin.Context) {
|
||||
}
|
||||
|
||||
// tokens took stats
|
||||
var historyMessages []model.HistoryMessage
|
||||
var historyMessages []model.ChatMessage
|
||||
res = h.db.Where("created_at > ?", zeroTime).Find(&historyMessages)
|
||||
for _, item := range historyMessages {
|
||||
stats.Tokens += item.Tokens
|
||||
|
||||
Reference in New Issue
Block a user