CaIon пре 2 година
родитељ
комит
44465a398b
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      model/cache.go

+ 4 - 0
model/cache.go

@@ -190,6 +190,10 @@ func SyncChannelCache(frequency int) {
 }
 }
 
 
 func CacheGetRandomSatisfiedChannel(group string, model string) (*Channel, error) {
 func CacheGetRandomSatisfiedChannel(group string, model string) (*Channel, error) {
+	if strings.HasPrefix(model, "gpt-4-gizmo") {
+		model = "gpt-4-gizmo-*"
+	}
+
 	if !common.MemoryCacheEnabled {
 	if !common.MemoryCacheEnabled {
 		return GetRandomSatisfiedChannel(group, model)
 		return GetRandomSatisfiedChannel(group, model)
 	}
 	}