feat: 优化问问微信工具规划

This commit is contained in:
Wxw-Gu committed 2026-09-10 15:35:12 +08:00
1 parent dc6d1eb6ac
commit 376ea79ff6
5 files changed
+144 -21

No files matched your search

+1 -2
View File
@@ -924,8 +924,7 @@ async function requestOpenAICompatibleWithTools(
body: JSON.stringify({
model,
messages,
tools,
tool_choice: 'auto',
...(tools.length ? { tools, tool_choice: 'auto' } : { tool_choice: 'none' }),
temperature: provider.advanced.temperature,
max_tokens: modelMaxTokens(provider, model),
...(provider.advanced.thinking === 'disabled' ? { thinking: { type: 'disabled' } } : {})