Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix: rerank endpoint base url

wizardchendf65b8bcd10e
diff --git a/internal/handler/initialization.go b/internal/handler/initialization.go
index 3e7947822..bef87e3a7 100644
--- a/internal/handler/initialization.go
+++ b/internal/handler/initialization.go
@@ -1304,14 +1304,7 @@ func (h *InitializationHandler) checkRerankModelConnection(ctx context.Context,
}
// 构造重排API端点
- rerankEndpoint := ""
- if strings.Contains(baseURL, "v1") {
- // 去除v1
- baseURL = strings.Replace(baseURL, "/v1", "", 1)
- rerankEndpoint = baseURL + "/rerank"
- } else {
- rerankEndpoint = baseURL + "/rerank"
- }
+ rerankEndpoint := baseURL + "/rerank"
// Mock测试数据
testQuery := "什么是人工智能?"