feat: add cohere support (#1355)

* support cohere

* chore: tiny improvements

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
This commit is contained in:
Ghostz
2024-04-24 21:50:01 +08:00
committed by GitHub
parent cb33e8aad5
commit 24f026d18e
12 changed files with 476 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ const (
StepFun
AwsClaude
Coze
Cohere
Dummy
)

View File

@@ -29,6 +29,8 @@ func ToAPIType(channelType int) int {
apiType = apitype.AwsClaude
case Coze:
apiType = apitype.Coze
case Cohere:
apiType = apitype.Cohere
}
return apiType

View File

@@ -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() {