mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 09:15:41 +08:00
feat: 优化问问微信工具规划
This commit is contained in:
1 parent
dc6d1eb6ac
commit
376ea79ff6
5 files changed
+144
-21
No files matched your search
@@ -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' } } : {})
|
||||
|
||||
Reference in new issue
Block a user