fix: model prefix
This commit is contained in:
1 parent
8f6f3313f5
commit
07bcabc5d4
1 file changed
+1
-1
+1
-1
@@ -97,7 +97,7 @@ func SelectKeyCacheByModel(model string) (Key, error) {
|
|||||||
keys = append(keys, item.Object.(Key))
|
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" {
|
if item.Object.(Key).ApiType == "openai" {
|
||||||
keys = append(keys, item.Object.(Key))
|
keys = append(keys, item.Object.(Key))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user