@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.
Files changed (2) hide show
  1. package/dist/proxy.js +10 -6
  2. 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 extended thinking (matches Claude Code default)
609
- // budget_tokens must be >= 1024, and max_tokens must accommodate it
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
- const maxTokens = Math.max(clientMax, 16000);
613
- r.max_tokens = maxTokens;
614
- r.thinking = { budget_tokens: maxTokens - 1, type: 'enabled' };
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "Use your Claude subscription as an API. No API key needed. Local proxy for Claude Max/Pro subscriptions.",
5
5
  "type": "module",
6
6
  "bin": {