feat: enhance Gemini API to support image response modalities and update model ratios

This commit is contained in:
Laisky.Cai
2025-03-17 01:22:33 +00:00
parent 8f50f485a9
commit 080b6036fb
6 changed files with 89 additions and 33 deletions

View File

@@ -44,7 +44,7 @@ func GetRandomSatisfiedChannel(group string, model string, ignoreFirstPriority b
err = channelQuery.Order("RAND()").First(&ability).Error
}
if err != nil {
return nil, err
return nil, errors.Wrap(err, "get random satisfied channel")
}
channel := Channel{}
channel.Id = ability.ChannelId