feat: support xinference rerank to jina format

This commit is contained in:
1808837298@qq.com committed 2025-03-16 21:06:29 +08:00
1 parent 6e8916207e
commit 8918381c96
9 files changed
+84 -21

No files matched your search

+1 -1
View File
@@ -262,7 +262,7 @@ func (a *Adaptor) DoResponse(c *gin.Context, resp *http.Response, info *relaycom
case constant.RelayModeImagesGenerations:
err, usage = OpenaiTTSHandler(c, resp, info)
case constant.RelayModeRerank:
err, usage = common_handler.RerankHandler(c, resp)
err, usage = common_handler.RerankHandler(c, info, resp)
default:
if info.IsStream {
err, usage = OaiStreamHandler(c, resp, info)