From a378665b8c78a5ce0c532a8691a84bec1fa89f6b Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Thu, 27 Mar 2025 18:47:50 +0800 Subject: [PATCH] feat: Add new cache ratios for o3-mini and gpt-4.5-preview models --- setting/operation_setting/cache_ratio.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setting/operation_setting/cache_ratio.go b/setting/operation_setting/cache_ratio.go index 01d79c10..89196523 100644 --- a/setting/operation_setting/cache_ratio.go +++ b/setting/operation_setting/cache_ratio.go @@ -14,6 +14,8 @@ var defaultCacheRatio = map[string]float64{ "o1-preview": 0.5, "o1-mini-2024-09-12": 0.5, "o1-mini": 0.5, + "o3-mini": 0.5, + "o3-mini-2025-01-31": 0.5, "gpt-4o-2024-11-20": 0.5, "gpt-4o-2024-08-06": 0.5, "gpt-4o": 0.5, @@ -21,6 +23,8 @@ var defaultCacheRatio = map[string]float64{ "gpt-4o-mini": 0.5, "gpt-4o-realtime-preview": 0.5, "gpt-4o-mini-realtime-preview": 0.5, + "gpt-4.5-preview": 0.5, + "gpt-4.5-preview-2025-02-27": 0.5, "deepseek-chat": 0.25, "deepseek-reasoner": 0.25, "deepseek-coder": 0.25,