feat: Add Jina reranking support for OpenAI adaptor

This commit is contained in:
1808837298@qq.com committed 2025-02-26 21:46:06 +08:00
1 parent ce03e77906
commit c3b0e57ea4
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import (
"one-api/service"
)
func jinaRerankHandler(c *gin.Context, resp *http.Response) (*dto.OpenAIErrorWithStatusCode, *dto.Usage) {
func JinaRerankHandler(c *gin.Context, resp *http.Response) (*dto.OpenAIErrorWithStatusCode, *dto.Usage) {
responseBody, err := io.ReadAll(resp.Body)
if err != nil {
return service.OpenAIErrorWrapper(err, "read_response_body_failed", http.StatusInternalServerError), nil