feat: support dify (close #299)

This commit is contained in:
CalciumIon
2024-07-06 01:32:40 +08:00
parent d298054d94
commit 99c285c50f
9 changed files with 263 additions and 1 deletions
+3
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
}