mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 15:31:27 +00:00
fix(cli): revert tools:[] to empty config for provider compatibility
Revert tools:[] to empty config {} to avoid provider compatibility
issues. Empty tools array is truthy and gets passed through to API
requests, which can cause errors on some providers. Omitting the
tools field entirely achieves the same effect (no tool access).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a9c2866ca8
commit
b1b5f72507
2 changed files with 2 additions and 2 deletions
|
|
@ -171,7 +171,7 @@ describe('btwCommand', () => {
|
|||
],
|
||||
},
|
||||
],
|
||||
{ tools: [] },
|
||||
{},
|
||||
expect.any(AbortSignal),
|
||||
'test-model',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ async function askBtw(
|
|||
],
|
||||
},
|
||||
],
|
||||
{ tools: [] },
|
||||
{}, // No tools — btw questions are text-only
|
||||
abortSignal,
|
||||
model,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue