mirror of
				https://github.com/linux-do/new-api.git
				synced 2025-11-04 13:23:42 +08:00 
			
		
		
		
	support gpts
This commit is contained in:
		@@ -190,6 +190,10 @@ func SyncChannelCache(frequency int) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func CacheGetRandomSatisfiedChannel(group string, model string) (*Channel, error) {
 | 
			
		||||
	if strings.HasPrefix(model, "gpt-4-gizmo") {
 | 
			
		||||
		model = "gpt-4-gizmo-*"
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if !common.MemoryCacheEnabled {
 | 
			
		||||
		return GetRandomSatisfiedChannel(group, model)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user