feat: add New API channel support

This commit is contained in:
CaIon
2026-07-27 15:20:19 +08:00
parent bc14c18f60
commit 398cdafecf
21 changed files with 408 additions and 128 deletions
+1
View File
@@ -38,5 +38,6 @@ const (
APITypeCodex
APITypeAdvancedCustom
APITypeSub2API
APITypeNewAPI
APITypeDummy // this one is only for count, do not add any channel after this
)
+3
View File
@@ -57,6 +57,7 @@ const (
ChannelTypeCodex = 57
ChannelTypeAdvancedCustom = 58
ChannelTypeSub2API = 59
ChannelTypeNewAPI = 60
ChannelTypeDummy // this one is only for count, do not add any channel after this
)
@@ -122,6 +123,7 @@ var ChannelBaseURLs = []string{
"https://chatgpt.com", //57
"", //58
"", //59
"", //60
}
var ChannelTypeNames = map[int]string{
@@ -181,6 +183,7 @@ var ChannelTypeNames = map[int]string{
ChannelTypeCodex: "ChatGPT Subscription (Codex)",
ChannelTypeAdvancedCustom: "Advanced Custom",
ChannelTypeSub2API: "Sub2API",
ChannelTypeNewAPI: "New API",
}
func GetChannelTypeName(channelType int) string {