Sfoglia il codice sorgente

chore: only check OpenAI channel & custom channel

JustSong 2 anni fa
parent
commit
f9f42997b2
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      controller/channel-billing.go

+ 4 - 0
controller/channel-billing.go

@@ -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