mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-30 23:41:47 +00:00
✨ feat(endpoint types): add support for image generation models in endpoint type handling
This commit is contained in:
@@ -33,5 +33,9 @@ func GetEndpointTypesByChannelType(channelType int, modelName string) []constant
|
||||
endpointTypes = []constant.EndpointType{constant.EndpointTypeOpenAI}
|
||||
}
|
||||
}
|
||||
if IsImageGenerationModel(modelName) {
|
||||
// add to first
|
||||
endpointTypes = append([]constant.EndpointType{constant.EndpointTypeImageGeneration}, endpointTypes...)
|
||||
}
|
||||
return endpointTypes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user