feat(ai-proxy): support Qwen reranks and conversations paths (#3724)

This commit is contained in:
woody
2026-04-16 15:52:58 +08:00
committed by GitHub
parent 26e17c48eb
commit 94b40aab9a
5 changed files with 185 additions and 3 deletions

View File

@@ -56,6 +56,9 @@ func Test_getApiName(t *testing.T) {
{"gemini stream generate content", "/v1beta/models/gemini-1.0-pro:streamGenerateContent", provider.ApiNameGeminiStreamGenerateContent},
// Cohere
{"cohere rerank", "/v1/rerank", provider.ApiNameCohereV1Rerank},
// Qwen
{"qwen reranks", "/v1/reranks", provider.ApiNameQwenV1Rerank},
{"qwen conversations", "/v1/conversations", provider.ApiNameQwenV1Conversations},
// Unknown
{"unknown", "/v1/unknown", ""},
}