feat: advanced custom channel (#5590)
This commit is contained in:
@@ -36,5 +36,6 @@ const (
|
||||
APITypeMiniMax
|
||||
APITypeReplicate
|
||||
APITypeCodex
|
||||
APITypeAdvancedCustom
|
||||
APITypeDummy // this one is only for count, do not add any channel after this
|
||||
)
|
||||
|
||||
@@ -55,6 +55,7 @@ const (
|
||||
ChannelTypeSora = 55
|
||||
ChannelTypeReplicate = 56
|
||||
ChannelTypeCodex = 57
|
||||
ChannelTypeAdvancedCustom = 58
|
||||
ChannelTypeDummy // this one is only for count, do not add any channel after this
|
||||
|
||||
)
|
||||
@@ -118,6 +119,7 @@ var ChannelBaseURLs = []string{
|
||||
"https://api.openai.com", //55
|
||||
"https://api.replicate.com", //56
|
||||
"https://chatgpt.com", //57
|
||||
"", //58
|
||||
}
|
||||
|
||||
var ChannelTypeNames = map[int]string{
|
||||
@@ -175,6 +177,7 @@ var ChannelTypeNames = map[int]string{
|
||||
ChannelTypeSora: "Sora",
|
||||
ChannelTypeReplicate: "Replicate",
|
||||
ChannelTypeCodex: "ChatGPT Subscription (Codex)",
|
||||
ChannelTypeAdvancedCustom: "Advanced Custom",
|
||||
}
|
||||
|
||||
func GetChannelTypeName(channelType int) string {
|
||||
|
||||
Reference in New Issue
Block a user