feat: sync remaining channel and relay updates

This commit is contained in:
OpenClaw Task Bot
2026-04-27 08:56:38 +08:00
parent 0321101ff7
commit 58c0258362
18 changed files with 465 additions and 271 deletions

View File

@@ -55,6 +55,9 @@ const (
ChannelTypeSora = 55
ChannelTypeReplicate = 56
ChannelTypeCodex = 57
ChannelTypeCodexCLIProxy = 58
ChannelTypeClaudeCodeCLIProxy = 59
ChannelTypeGeminiCLIProxy = 60
ChannelTypeDummy // this one is only for count, do not add any channel after this
)
@@ -118,6 +121,9 @@ var ChannelBaseURLs = []string{
"https://api.openai.com", //55
"https://api.replicate.com", //56
"https://chatgpt.com", //57
"", //58
"", //59
"", //60
}
var ChannelTypeNames = map[int]string{
@@ -175,6 +181,9 @@ var ChannelTypeNames = map[int]string{
ChannelTypeSora: "Sora",
ChannelTypeReplicate: "Replicate",
ChannelTypeCodex: "Codex",
ChannelTypeCodexCLIProxy: "CodexCLIProxy",
ChannelTypeClaudeCodeCLIProxy: "ClaudeCodeCLIProxy",
ChannelTypeGeminiCLIProxy: "GeminiCLIProxy",
}
func GetChannelTypeName(channelType int) string {

View File

@@ -10,6 +10,7 @@ const (
EndpointTypeGemini EndpointType = "gemini"
EndpointTypeJinaRerank EndpointType = "jina-rerank"
EndpointTypeImageGeneration EndpointType = "image-generation"
EndpointTypeImageEdit EndpointType = "image-edit"
EndpointTypeEmbeddings EndpointType = "embeddings"
EndpointTypeOpenAIVideo EndpointType = "openai-video"
//EndpointTypeMidjourney EndpointType = "midjourney-proxy"