修复获取模型消息数量,统计数据
This commit is contained in:
parent
226892d9e2
commit
7b55f41f90
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue