feat: support minimax's models now (close #354)

This commit is contained in:
JustSong
2024-03-02 01:24:28 +08:00
parent 614c2e0442
commit df1fd9aa81
10 changed files with 71 additions and 3 deletions

View File

@@ -65,6 +65,7 @@ const (
ChannelTypeGemini = 24
ChannelTypeMoonshot = 25
ChannelTypeBaichuan = 26
ChannelTypeMinimax = 27
)
var ChannelBaseURLs = []string{
@@ -95,6 +96,7 @@ var ChannelBaseURLs = []string{
"https://generativelanguage.googleapis.com", // 24
"https://api.moonshot.cn", // 25
"https://api.baichuan-ai.com", // 26
"https://api.minimax.chat", // 27
}
const (

View File

@@ -127,6 +127,14 @@ var ModelRatio = map[string]float64{
"moonshot-v1-8k": 0.012 * RMB,
"moonshot-v1-32k": 0.024 * RMB,
"moonshot-v1-128k": 0.06 * RMB,
// https://platform.baichuan-ai.com/price
"Baichuan2-Turbo": 0.008 * RMB,
"Baichuan2-Turbo-192k": 0.016 * RMB,
"Baichuan2-53B": 0.02 * RMB,
// https://api.minimax.chat/document/price
"abab6": 0.1 * RMB,
"abab5.5": 0.015 * RMB,
"abab5.5s": 0.005 * RMB,
}
func ModelRatio2JSONString() string {