mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-12 03:13:41 +08:00
feat: support aws bedrockruntime claude3
closes #622, closes #749, closes #1300
This commit is contained in:
@@ -34,6 +34,7 @@ const (
|
||||
Ollama
|
||||
LingYiWanWu
|
||||
StepFun
|
||||
AwsClaude
|
||||
|
||||
Dummy
|
||||
)
|
||||
|
||||
@@ -25,6 +25,9 @@ func ToAPIType(channelType int) int {
|
||||
apiType = apitype.Gemini
|
||||
case Ollama:
|
||||
apiType = apitype.Ollama
|
||||
case AwsClaude:
|
||||
apiType = apitype.AwsClaude
|
||||
}
|
||||
|
||||
return apiType
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ var ChannelBaseURLs = []string{
|
||||
"http://localhost:11434", // 30
|
||||
"https://api.lingyiwanwu.com", // 31
|
||||
"https://api.stepfun.com", // 32
|
||||
"", // 33
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user