chore: only check OpenAI channel & custom channel

This commit is contained in:
JustSong 2023-05-23 10:00:36 +08:00
parent 25eab0b224
commit f9f42997b2

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