chore: only check OpenAI channel & custom channel

This commit is contained in:
JustSong
2023-05-23 10:00:36 +08:00
parent bc4c572b41
commit c658ce0a6c

View File

@@ -144,6 +144,10 @@ func updateAllChannelsBalance() error {
if channel.Status != common.ChannelStatusEnabled {
continue
}
// TODO: support Azure
if channel.Type != common.ChannelTypeOpenAI && channel.Type != common.ChannelTypeCustom {
continue
}
balance, err := updateChannelBalance(channel)
if err != nil {
continue