From b144ec77466cbbcbd8f698767c32c5d31660439f Mon Sep 17 00:00:00 2001 From: Zhijie He Date: Sat, 25 Jan 2025 09:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20add=20`parallel=5Ftool?= =?UTF-8?q?=5Fcalls`=20support=20for=20Qwen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libs/agent-runtime/qwen/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/agent-runtime/qwen/index.ts b/src/libs/agent-runtime/qwen/index.ts index 694d0a532c22..071be09848d5 100644 --- a/src/libs/agent-runtime/qwen/index.ts +++ b/src/libs/agent-runtime/qwen/index.ts @@ -60,6 +60,9 @@ export const LobeQwenAI = LobeOpenAICompatibleFactory({ search_strategy: process.env.QWEN_SEARCH_STRATEGY || 'standard', // standard or pro } }), + ...(payload.tools && { + parallel_tool_calls: true, + }), } as any; }, handleStream: QwenAIStream,