feat: add support for Sora channel type and OpenAI video endpoint
This commit is contained in:
@@ -26,6 +26,8 @@ func GetEndpointTypesByChannelType(channelType int, modelName string) []constant
|
|||||||
endpointTypes = []constant.EndpointType{constant.EndpointTypeGemini, constant.EndpointTypeOpenAI}
|
endpointTypes = []constant.EndpointType{constant.EndpointTypeGemini, constant.EndpointTypeOpenAI}
|
||||||
case constant.ChannelTypeOpenRouter: // OpenRouter 只支持 OpenAI 端点
|
case constant.ChannelTypeOpenRouter: // OpenRouter 只支持 OpenAI 端点
|
||||||
endpointTypes = []constant.EndpointType{constant.EndpointTypeOpenAI}
|
endpointTypes = []constant.EndpointType{constant.EndpointTypeOpenAI}
|
||||||
|
case constant.ChannelTypeSora:
|
||||||
|
endpointTypes = []constant.EndpointType{constant.EndpointTypeOpenAIVideo}
|
||||||
default:
|
default:
|
||||||
if IsOpenAIResponseOnlyModel(modelName) {
|
if IsOpenAIResponseOnlyModel(modelName) {
|
||||||
endpointTypes = []constant.EndpointType{constant.EndpointTypeOpenAIResponse}
|
endpointTypes = []constant.EndpointType{constant.EndpointTypeOpenAIResponse}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ const (
|
|||||||
EndpointTypeJinaRerank EndpointType = "jina-rerank"
|
EndpointTypeJinaRerank EndpointType = "jina-rerank"
|
||||||
EndpointTypeImageGeneration EndpointType = "image-generation"
|
EndpointTypeImageGeneration EndpointType = "image-generation"
|
||||||
EndpointTypeEmbeddings EndpointType = "embeddings"
|
EndpointTypeEmbeddings EndpointType = "embeddings"
|
||||||
|
EndpointTypeOpenAIVideo EndpointType = "openai-video"
|
||||||
//EndpointTypeMidjourney EndpointType = "midjourney-proxy"
|
//EndpointTypeMidjourney EndpointType = "midjourney-proxy"
|
||||||
//EndpointTypeSuno EndpointType = "suno-proxy"
|
//EndpointTypeSuno EndpointType = "suno-proxy"
|
||||||
//EndpointTypeKling EndpointType = "kling"
|
//EndpointTypeKling EndpointType = "kling"
|
||||||
|
|||||||
Reference in New Issue
Block a user