Add 01.AI relay

This commit is contained in:
Maple Gao
2024-03-20 23:44:03 +08:00
committed by GitHub
parent c7658b70d1
commit cfabf8a656
7 changed files with 35 additions and 0 deletions

View File

@@ -212,6 +212,7 @@ const (
ChannelTypeMoonshot = 25
ChannelTypeZhipu_v4 = 26
ChannelTypePerplexity = 27
ChannelTypeLingYiWanWu = 31
)
var ChannelBaseURLs = []string{
@@ -243,4 +244,5 @@ var ChannelBaseURLs = []string{
"https://api.moonshot.cn", //25
"https://open.bigmodel.cn", //26
"https://api.perplexity.ai", //27
"https://api.lingyiwanwu.com", //31
}

View File

@@ -93,6 +93,11 @@ var DefaultModelRatio = map[string]float64{
"embedding_s1_v1": 0.0715, // ¥0.001 / 1k tokens
"semantic_similarity_s1_v1": 0.0715, // ¥0.001 / 1k tokens
"hunyuan": 7.143, // ¥0.1 / 1k tokens // https://cloud.tencent.com/document/product/1729/97731#e0e6be58-60c8-469f-bdeb-6c264ce3b4d0
// https://platform.lingyiwanwu.com/docs#-计费单元
// 已经按照 7.2 来换算美元价格
"yi-34b-chat-0205": 0.018,
"yi-34b-chat-200k": 0.0864,
"yi-vl-plus": 0.0432,
}
var DefaultModelPrice = map[string]float64{