@askalf/dario 2.6.0 → 2.7.0
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/proxy.js +10 -6
- package/package.json +1 -1
package/dist/proxy.js
CHANGED
|
@@ -605,13 +605,17 @@ export async function startProxy(opts = {}) {
|
|
|
605
605
|
}),
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
|
-
// Enable
|
|
609
|
-
//
|
|
608
|
+
// Enable adaptive thinking (matches Claude Code default)
|
|
609
|
+
// adaptive lets the model decide when/how much to think — preferred for Opus/Sonnet 4.6
|
|
610
610
|
if (!r.thinking) {
|
|
611
|
+
r.thinking = { type: 'adaptive' };
|
|
612
|
+
// Ensure max_tokens is reasonable for thinking models
|
|
611
613
|
const clientMax = r.max_tokens || 8192;
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
614
|
+
r.max_tokens = Math.max(clientMax, 16000);
|
|
615
|
+
}
|
|
616
|
+
// Request priority capacity when available
|
|
617
|
+
if (!r.service_tier) {
|
|
618
|
+
r.service_tier = 'auto';
|
|
615
619
|
}
|
|
616
620
|
// Enable context management (matches Claude Code default)
|
|
617
621
|
if (!r.context_management) {
|
|
@@ -649,7 +653,7 @@ export async function startProxy(opts = {}) {
|
|
|
649
653
|
// Billing classification is determined by the OAuth token alone, not beta flags.
|
|
650
654
|
// context-management and prompt-caching-scope are safe for all subscription types.
|
|
651
655
|
const clientBeta = req.headers['anthropic-beta'];
|
|
652
|
-
let beta = 'oauth-2025-04-20,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,claude-code-20250219,advisor-tool-2026-03-01';
|
|
656
|
+
let beta = 'oauth-2025-04-20,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,claude-code-20250219,advisor-tool-2026-03-01,effort-2025-11-24';
|
|
653
657
|
if (clientBeta) {
|
|
654
658
|
const filtered = filterBillableBetas(clientBeta);
|
|
655
659
|
if (filtered)
|