mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	chore: only check OpenAI channel & custom channel
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user