解锁deepseek补全倍率;允许deepseek渠道获取模型
This commit is contained in:
parent
6ca88d1699
commit
71b3c90bc9
@ -501,7 +501,6 @@ func GetCompletionRatio(name string) float64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getHardcodedCompletionModelRatio(name string) (float64, bool) {
|
func getHardcodedCompletionModelRatio(name string) (float64, bool) {
|
||||||
lowercaseName := strings.ToLower(name)
|
|
||||||
|
|
||||||
isReservedModel := strings.HasSuffix(name, "-all") || strings.HasSuffix(name, "-gizmo-*")
|
isReservedModel := strings.HasSuffix(name, "-all") || strings.HasSuffix(name, "-gizmo-*")
|
||||||
if isReservedModel {
|
if isReservedModel {
|
||||||
@ -594,9 +593,6 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// hint 只给官方上4倍率,由于开源模型供应商自行定价,不对其进行补全倍率进行强制对齐
|
// hint 只给官方上4倍率,由于开源模型供应商自行定价,不对其进行补全倍率进行强制对齐
|
||||||
if lowercaseName == "deepseek-chat" || lowercaseName == "deepseek-reasoner" {
|
|
||||||
return 4, true
|
|
||||||
}
|
|
||||||
if strings.HasPrefix(name, "ERNIE-Speed-") {
|
if strings.HasPrefix(name, "ERNIE-Speed-") {
|
||||||
return 2, true
|
return 2, true
|
||||||
} else if strings.HasPrefix(name, "ERNIE-Lite-") {
|
} else if strings.HasPrefix(name, "ERNIE-Lite-") {
|
||||||
|
|||||||
@ -103,6 +103,7 @@ const MODEL_FETCHABLE_TYPES = new Set([
|
|||||||
40,
|
40,
|
||||||
42,
|
42,
|
||||||
48,
|
48,
|
||||||
|
43,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
function type2secretPrompt(type) {
|
function type2secretPrompt(type) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user