feat: support jina rerank

This commit is contained in:
CalciumIon
2024-07-06 18:42:48 +08:00
parent 3ed4f2f0a9
commit 8a730cfe12
8 changed files with 120 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import (
"one-api/relay/channel/cohere"
"one-api/relay/channel/dify"
"one-api/relay/channel/gemini"
"one-api/relay/channel/jina"
"one-api/relay/channel/ollama"
"one-api/relay/channel/openai"
"one-api/relay/channel/palm"
@@ -56,6 +57,8 @@ func GetAdaptor(apiType int) channel.Adaptor {
return &cohere.Adaptor{}
case constant.APITypeDify:
return &dify.Adaptor{}
case constant.APITypeJina:
return &jina.Adaptor{}
}
return nil
}