From 4edf79a1f62f27a7128f96476aee4ba9e7ee37b3 Mon Sep 17 00:00:00 2001 From: johnlanni Date: Tue, 9 Sep 2025 21:35:31 +0800 Subject: [PATCH] Revert "remove qwen Anthropic compatiable mode" This reverts commit f7d80373f993dac2a41b0e1b083f43d4983a766d. --- plugins/wasm-go/extensions/ai-proxy/provider/qwen.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/wasm-go/extensions/ai-proxy/provider/qwen.go b/plugins/wasm-go/extensions/ai-proxy/provider/qwen.go index 2f9020694..a913319d0 100644 --- a/plugins/wasm-go/extensions/ai-proxy/provider/qwen.go +++ b/plugins/wasm-go/extensions/ai-proxy/provider/qwen.go @@ -74,14 +74,16 @@ func (m *qwenProviderInitializer) DefaultCapabilities(qwenEnableCompatible bool) string(ApiNameRetrieveFileContent): qwenCompatibleRetrieveFileContentPath, string(ApiNameBatches): qwenCompatibleBatchesPath, string(ApiNameRetrieveBatch): qwenCompatibleRetrieveBatchPath, + string(ApiNameAnthropicMessages): qwenAnthropicMessagesPath, } } else { return map[string]string{ - string(ApiNameChatCompletion): qwenChatCompletionPath, - string(ApiNameEmbeddings): qwenTextEmbeddingPath, - string(ApiNameQwenAsyncAIGC): qwenAsyncAIGCPath, - string(ApiNameQwenAsyncTask): qwenAsyncTaskPath, - string(ApiNameQwenV1Rerank): qwenTextRerankPath, + string(ApiNameChatCompletion): qwenChatCompletionPath, + string(ApiNameEmbeddings): qwenTextEmbeddingPath, + string(ApiNameQwenAsyncAIGC): qwenAsyncAIGCPath, + string(ApiNameQwenAsyncTask): qwenAsyncTaskPath, + string(ApiNameQwenV1Rerank): qwenTextRerankPath, + string(ApiNameAnthropicMessages): qwenAnthropicMessagesPath, } } }