From 93d54a7ef5ada3f9fcda7bd62a4ebcc77abe0c3c Mon Sep 17 00:00:00 2001 From: suziheng Date: Wed, 23 Apr 2025 10:27:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0gpt-4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- relay/adaptor/openai/constants.go | 2 +- relay/billing/ratio/model.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/relay/adaptor/openai/constants.go b/relay/adaptor/openai/constants.go index 8a643bc6..a8854efe 100644 --- a/relay/adaptor/openai/constants.go +++ b/relay/adaptor/openai/constants.go @@ -4,7 +4,7 @@ var ModelList = []string{ "gpt-3.5-turbo", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-16k-0613", "gpt-3.5-turbo-instruct", - "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-0125-preview", + "gpt-4", "gpt-4.1", "gpt-4-0314", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-0125-preview", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-4-turbo-preview", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4o", "gpt-4o-2024-05-13", diff --git a/relay/billing/ratio/model.go b/relay/billing/ratio/model.go index f25ada17..70a08d8f 100644 --- a/relay/billing/ratio/model.go +++ b/relay/billing/ratio/model.go @@ -27,6 +27,7 @@ var modelRatioLock sync.RWMutex var ModelRatio = map[string]float64{ // https://openai.com/pricing "gpt-4": 15, + "gpt-4.1": 15, "gpt-4-0314": 15, "gpt-4-0613": 15, "gpt-4-32k": 30,