mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-11 00:23:42 +08:00
add gpt-4o tokenizer
Signed-off-by: wozulong <>
This commit is contained in:
@@ -293,6 +293,8 @@ func SyncChannelCache(frequency int) {
|
||||
func CacheGetRandomSatisfiedChannel(group string, model string, retry int) (*Channel, error) {
|
||||
if strings.HasPrefix(model, "gpt-4-gizmo") {
|
||||
model = "gpt-4-gizmo-*"
|
||||
} else if strings.HasPrefix(model, "g-") {
|
||||
model = "g-*"
|
||||
}
|
||||
|
||||
// if memory cache is disabled, get channel directly from database
|
||||
|
||||
Reference in New Issue
Block a user