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

@@ -71,6 +71,7 @@ const (
ApiNameQwenAsyncAIGC ApiName = "qwen/v1/services/aigc"
ApiNameQwenAsyncTask ApiName = "qwen/v1/tasks"
ApiNameQwenV1Rerank ApiName = "qwen/v1/rerank"
ApiNameQwenV1Conversations ApiName = "qwen/v1/conversations"
ApiNameGeminiGenerateContent ApiName = "gemini/v1beta/generatecontent"
ApiNameGeminiStreamGenerateContent ApiName = "gemini/v1beta/streamgeneratecontent"
ApiNameAnthropicMessages ApiName = "anthropic/v1/messages"
@@ -118,6 +119,10 @@ const (
// Cohere
PathCohereV1Rerank = "/v1/rerank"
// Qwen
PathQwenV1Reranks = "/v1/reranks"
PathQwenV1Conversations = "/v1/conversations"
providerTypeMoonshot = "moonshot"
providerTypeAzure = "azure"
providerTypeAi360 = "ai360"