mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 09:16:36 +08:00
feat: 支持CozeV3
This commit is contained in:
parent
aca72dc979
commit
dde3cff708
@ -48,5 +48,6 @@ const (
|
|||||||
SiliconFlow
|
SiliconFlow
|
||||||
XAI
|
XAI
|
||||||
Replicate
|
Replicate
|
||||||
|
CozeV3
|
||||||
Dummy
|
Dummy
|
||||||
)
|
)
|
||||||
|
@ -29,6 +29,8 @@ func ToAPIType(channelType int) int {
|
|||||||
apiType = apitype.AwsClaude
|
apiType = apitype.AwsClaude
|
||||||
case Coze:
|
case Coze:
|
||||||
apiType = apitype.Coze
|
apiType = apitype.Coze
|
||||||
|
case CozeV3:
|
||||||
|
apiType = apitype.CozeV3
|
||||||
case Cohere:
|
case Cohere:
|
||||||
apiType = apitype.Cohere
|
apiType = apitype.Cohere
|
||||||
case Cloudflare:
|
case Cloudflare:
|
||||||
|
@ -48,6 +48,7 @@ var ChannelBaseURLs = []string{
|
|||||||
"https://api.siliconflow.cn", // 44
|
"https://api.siliconflow.cn", // 44
|
||||||
"https://api.x.ai", // 45
|
"https://api.x.ai", // 45
|
||||||
"https://api.replicate.com/v1/models/", // 46
|
"https://api.replicate.com/v1/models/", // 46
|
||||||
|
"https://api.coze.cn", // 47
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user