feat: support deepseek (#60)

This commit is contained in:
Buer
2024-02-02 10:03:00 +08:00
committed by GitHub
parent 332b6fd397
commit 48f9ed29e8
6 changed files with 54 additions and 0 deletions

View File

@@ -191,6 +191,7 @@ const (
ChannelTypeGemini = 25
ChannelTypeBaichuan = 26
ChannelTypeMiniMax = 27
ChannelTypeDeepseek = 28
)
var ChannelBaseURLs = []string{
@@ -222,6 +223,7 @@ var ChannelBaseURLs = []string{
"", //25
"https://api.baichuan-ai.com", //26
"https://api.minimax.chat/v1", //27
"https://api.deepseek.com", //28
}
const (

View File

@@ -108,6 +108,8 @@ func init() {
"abab5.5-chat": {1.0714, ChannelTypeMiniMax}, // ¥0.015 / 1k tokens
"abab6-chat": {14.2857, ChannelTypeMiniMax}, // ¥0.2 / 1k tokens
"embo-01": {0.0357, ChannelTypeMiniMax}, // ¥0.0005 / 1k tokens
"deepseek-coder": {0.75, ChannelTypeDeepseek}, // 暂定 $0.0015 / 1K tokens
"deepseek-chat": {0.75, ChannelTypeDeepseek}, // 暂定 $0.0015 / 1K tokens
}
ModelRatio = make(map[string]float64)