fix: model prefix

This commit is contained in:
Sakurasan
2024-12-18 15:58:43 +08:00
parent 8f6f3313f5
commit 07bcabc5d4

View File

@@ -97,7 +97,7 @@ func SelectKeyCacheByModel(model string) (Key, error) {
keys = append(keys, item.Object.(Key))
}
}
if strings.HasPrefix(model, "o1-") || model == "chatgpt-4o-latest" {
if strings.HasPrefix(model, "o1-") || strings.HasPrefix(model, "chatgpt-") {
if item.Object.(Key).ApiType == "openai" {
keys = append(keys, item.Object.(Key))
}