修复获取模型消息数量,统计数据

This commit is contained in:
junleea 2025-05-03 00:15:51 +08:00
parent 226892d9e2
commit 7b55f41f90
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func GetAIStreamModelMsgCount() ([]AIStreamMsgModelIDCount, error) {
return nil, db2.Error
}
//获取模型名称
for i := 0; i < len(aiStreamMsgModelIDCounts); i++ {
for i, _ := range aiStreamMsgModelIDCounts {
modelName := FindModelByIDV2(int(aiStreamMsgModelIDCounts[i].ModelID))
aiStreamMsgModelIDCounts[i].ModelName = modelName[0].Description
}