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

@@ -69,6 +69,9 @@ var (
{provider.PathAnthropicComplete, provider.ApiNameAnthropicComplete},
// Cohere style
{provider.PathCohereV1Rerank, provider.ApiNameCohereV1Rerank},
// Qwen style
{provider.PathQwenV1Reranks, provider.ApiNameQwenV1Rerank},
{provider.PathQwenV1Conversations, provider.ApiNameQwenV1Conversations},
}
pathPatternToApiName = []pair[*regexp.Regexp, provider.ApiName]{
// OpenAI style