mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-13 03:43:44 +08:00
feat: support cloudflare now
This commit is contained in:
@@ -38,6 +38,7 @@ const (
|
||||
Coze
|
||||
Cohere
|
||||
DeepSeek
|
||||
Cloudflare
|
||||
|
||||
Dummy
|
||||
)
|
||||
|
||||
@@ -31,6 +31,8 @@ func ToAPIType(channelType int) int {
|
||||
apiType = apitype.Coze
|
||||
case Cohere:
|
||||
apiType = apitype.Cohere
|
||||
case Cloudflare:
|
||||
apiType = apitype.Cloudflare
|
||||
}
|
||||
|
||||
return apiType
|
||||
|
||||
@@ -38,6 +38,7 @@ var ChannelBaseURLs = []string{
|
||||
"https://api.coze.com", // 34
|
||||
"https://api.cohere.ai", // 35
|
||||
"https://api.deepseek.com", // 36
|
||||
"https://api.cloudflare.com", // 37
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user