Merge branch 'refs/heads/feat-statistic-info'

This commit is contained in:
junleea 2025-05-03 00:17:53 +08:00
commit f2aceaf15f
1 changed files with 6 additions and 1 deletions

View File

@ -63,7 +63,12 @@ func GetAIStreamModelMsgCount() ([]AIStreamMsgModelIDCount, error) {
//获取模型名称
for i, _ := range aiStreamMsgModelIDCounts {
modelName := FindModelByIDV2(int(aiStreamMsgModelIDCounts[i].ModelID))
if modelName == nil || len(modelName) == 0 {
aiStreamMsgModelIDCounts[i].ModelName = "未知模型"
} else {
aiStreamMsgModelIDCounts[i].ModelName = modelName[0].Description
}
}
return aiStreamMsgModelIDCounts, nil
}