mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-16 08:04:10 +00:00
feat: add cohere support (#1355)
* support cohere * chore: tiny improvements --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
This commit is contained in:
@@ -36,6 +36,7 @@ const (
|
||||
StepFun
|
||||
AwsClaude
|
||||
Coze
|
||||
Cohere
|
||||
|
||||
Dummy
|
||||
)
|
||||
|
@@ -29,6 +29,8 @@ func ToAPIType(channelType int) int {
|
||||
apiType = apitype.AwsClaude
|
||||
case Coze:
|
||||
apiType = apitype.Coze
|
||||
case Cohere:
|
||||
apiType = apitype.Cohere
|
||||
}
|
||||
|
||||
return apiType
|
||||
|
@@ -36,6 +36,7 @@ var ChannelBaseURLs = []string{
|
||||
"https://api.stepfun.com", // 32
|
||||
"", // 33
|
||||
"https://api.coze.com", // 34
|
||||
"https://api.cohere.ai", //35
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
Reference in New Issue
Block a user