feat: support dify (close #299)

This commit is contained in:
CalciumIon
2024-07-06 01:32:40 +08:00
parent bd7222118a
commit e0ed59bfe3
9 changed files with 263 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import (
"one-api/relay/channel/baidu"
"one-api/relay/channel/claude"
"one-api/relay/channel/cohere"
"one-api/relay/channel/dify"
"one-api/relay/channel/gemini"
"one-api/relay/channel/ollama"
"one-api/relay/channel/openai"
@@ -53,6 +54,8 @@ func GetAdaptor(apiType int) channel.Adaptor {
return &aws.Adaptor{}
case constant.APITypeCohere:
return &cohere.Adaptor{}
case constant.APITypeDify:
return &dify.Adaptor{}
}
return nil
}