CaIon %!s(int64=2) %!d(string=hai) anos
pai
achega
44465a398b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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) {
+	if strings.HasPrefix(model, "gpt-4-gizmo") {
+		model = "gpt-4-gizmo-*"
+	}
+
 	if !common.MemoryCacheEnabled {
 		return GetRandomSatisfiedChannel(group, model)
 	}