feat: support gpt-4o-gizmo-* (close #436)

This commit is contained in:
CalciumIon
2024-08-16 17:25:03 +08:00
parent a5ec11e463
commit d0f76a5c61
3 changed files with 23 additions and 8 deletions

View File

@@ -270,6 +270,9 @@ func CacheGetRandomSatisfiedChannel(group string, model string, retry int) (*Cha
if strings.HasPrefix(model, "gpt-4-gizmo") {
model = "gpt-4-gizmo-*"
}
if strings.HasPrefix(model, "gpt-4o-gizmo") {
model = "gpt-4o-gizmo-*"
}
// if memory cache is disabled, get channel directly from database
if !common.MemoryCacheEnabled {