From 07bcabc5d4e2af77fa2d95b6c8950e078e187495 Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:58:43 +0800 Subject: [PATCH] fix: model prefix --- store/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/cache.go b/store/cache.go index 23b3fa8..16c0353 100644 --- a/store/cache.go +++ b/store/cache.go @@ -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)) }