mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-12 07:00:42 +00:00
feat: add New API channel support
This commit is contained in:
@@ -38,5 +38,6 @@ const (
|
||||
APITypeCodex
|
||||
APITypeAdvancedCustom
|
||||
APITypeSub2API
|
||||
APITypeNewAPI
|
||||
APITypeDummy // this one is only for count, do not add any channel after this
|
||||
)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user