fest: Add Google Gemini Pro, fix #810

This commit is contained in:
David Zhuang
2023-12-16 01:33:46 -05:00
parent 366b82128f
commit 6395c7377e
11 changed files with 301 additions and 3 deletions

View File

@@ -187,6 +187,7 @@ const (
ChannelTypeAIProxyLibrary = 21
ChannelTypeFastGPT = 22
ChannelTypeTencent = 23
ChannelTypeGeminiChat = 24
)
var ChannelBaseURLs = []string{

View File

@@ -83,6 +83,7 @@ var ModelRatio = map[string]float64{
"ERNIE-Bot-4": 8.572, // ¥0.12 / 1k tokens
"Embedding-V1": 0.1429, // ¥0.002 / 1k tokens
"PaLM-2": 1,
"gemini-pro": 1,
"chatglm_turbo": 0.3572, // ¥0.005 / 1k tokens
"chatglm_pro": 0.7143, // ¥0.01 / 1k tokens
"chatglm_std": 0.3572, // ¥0.005 / 1k tokens