feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+7
View File
@@ -4,6 +4,13 @@ import "github.com/QuantumNous/new-api/constant"
// GetEndpointTypesByChannelType 获取渠道最优先端点类型(所有的渠道都支持 OpenAI 端点)
func GetEndpointTypesByChannelType(channelType int, modelName string) []constant.EndpointType {
// The DeepSeek Search and Fetch routing names serve only their endpoint.
switch modelName {
case constant.DeepSeekSearchModel:
return []constant.EndpointType{constant.EndpointTypeDeepSeekToolsSearch}
case constant.DeepSeekFetchModel:
return []constant.EndpointType{constant.EndpointTypeDeepSeekToolsFetch}
}
var endpointTypes []constant.EndpointType
switch channelType {
case constant.ChannelTypeJina: