From 6c059d5bf21d61afd8712df9a3df290f5ee7b611 Mon Sep 17 00:00:00 2001 From: Maple Gao Date: Tue, 14 May 2024 09:46:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20add:=20Support=20GPT4o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- relay/channel/openai/constant.go | 1 + 1 file changed, 1 insertion(+) diff --git a/relay/channel/openai/constant.go b/relay/channel/openai/constant.go index 8c560c7..fd0a602 100644 --- a/relay/channel/openai/constant.go +++ b/relay/channel/openai/constant.go @@ -1,6 +1,7 @@ package openai var ModelList = []string{ + "gpt-4o", "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", From 256ccfa989b87eb5da1fa798fbdcac08e11e4a9a Mon Sep 17 00:00:00 2001 From: Maple Gao Date: Tue, 14 May 2024 09:48:04 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=A8=20add:=20Support=20GPT4o=20ratio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/model-ratio.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/model-ratio.go b/common/model-ratio.go index 4510551..cd6126c 100644 --- a/common/model-ratio.go +++ b/common/model-ratio.go @@ -28,6 +28,7 @@ var DefaultModelRatio = map[string]float64{ "gpt-4-vision-preview": 5, // $0.01 / 1K tokens "gpt-4-1106-vision-preview": 5, // $0.01 / 1K tokens "gpt-4-turbo": 5, // $0.01 / 1K tokens + "gpt-4o": 0.25, // $0.0015 / 1K tokens "gpt-4-turbo-2024-04-09": 5, // $0.01 / 1K tokens "gpt-3.5-turbo": 0.25, // $0.0015 / 1K tokens //"gpt-3.5-turbo-0301": 0.75, //deprecated