@hiper2d/ai-agents 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +21 -8
- package/dist/index.d.ts +21 -8
- package/dist/index.js +15 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4572,12 +4572,21 @@ var QwenAgent = class extends AbstractAgent {
|
|
|
4572
4572
|
* generation); without it the model thinks at the provider default, and qwen3.8-max's
|
|
4573
4573
|
* latency then swings 30–100s.
|
|
4574
4574
|
*
|
|
4575
|
-
* `reasoning_effort` is
|
|
4576
|
-
*
|
|
4577
|
-
*
|
|
4578
|
-
*
|
|
4579
|
-
*
|
|
4580
|
-
*
|
|
4575
|
+
* `reasoning_effort` is NOT sent, and the earlier reason recorded here was wrong. The
|
|
4576
|
+
* 2026-08-30 probe concluded "reasoning length doesn't track effort"; it had tested
|
|
4577
|
+
* low/high/max/xhigh, but Qwen only defines low|medium|xhigh and aliases both `high` and
|
|
4578
|
+
* `max` onto `xhigh`. So that probe compared low against xhigh twice and read the noise as
|
|
4579
|
+
* non-monotonicity.
|
|
4580
|
+
*
|
|
4581
|
+
* Re-probed 2026-09-22 with the documented levels, and effort tracks cleanly:
|
|
4582
|
+
* qwen3.8-max budget 1024 → 77 reasoning | low 132 | medium 160 | xhigh 422
|
|
4583
|
+
* qwen3.8-flash budget 1024 → 86 reasoning | low 87 | medium 251 | xhigh 417
|
|
4584
|
+
*
|
|
4585
|
+
* We still send the budget, for a better reason: the two are mutually exclusive (sending
|
|
4586
|
+
* both is a 400), Qwen documents effort as a coarse alias for a budget (low = 4,096,
|
|
4587
|
+
* medium = 16,384, xhigh = 262,144 tokens), and our 1,024 is tighter than the lowest level
|
|
4588
|
+
* it can express. The budget is the finer AND cheaper knob here, so `reasoningEffort` on
|
|
4589
|
+
* this agent stays ignored — deliberately, not because effort is broken.
|
|
4581
4590
|
*/
|
|
4582
4591
|
thinkingParams() {
|
|
4583
4592
|
const budget = this.thinkingBudgetTokens;
|