mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-19 00:46:37 +08:00
support gpts
This commit is contained in:
parent
4f0419c7bc
commit
44465a398b
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user