@askalf/dario 2.3.0 → 2.3.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/proxy.js +5 -2
- package/package.json +1 -1
package/dist/proxy.js
CHANGED
|
@@ -435,9 +435,12 @@ export async function startProxy(opts = {}) {
|
|
|
435
435
|
const modelInfo = modelOverride ? ` (model: ${modelOverride})` : '';
|
|
436
436
|
console.log(`[dario] #${requestCount} ${req.method} ${urlPath}${modelInfo}`);
|
|
437
437
|
}
|
|
438
|
-
// Merge client beta flags with defaults
|
|
438
|
+
// Merge client beta flags with required defaults.
|
|
439
|
+
// Only include betas that are essential for OAuth + standard features.
|
|
440
|
+
// Avoid betas that may require Extra Usage (context-management, prompt-caching-scope).
|
|
441
|
+
// Client-provided betas pass through — the client controls its own feature set.
|
|
439
442
|
const clientBeta = req.headers['anthropic-beta'];
|
|
440
|
-
let beta = 'oauth-2025-04-20,interleaved-thinking-2025-05-14,
|
|
443
|
+
let beta = 'oauth-2025-04-20,interleaved-thinking-2025-05-14,claude-code-20250219';
|
|
441
444
|
if (clientBeta)
|
|
442
445
|
beta += ',' + clientBeta.split(',').map(f => f.trim()).filter(f => f.length > 0 && f.length < 100).join(',');
|
|
443
446
|
const headers = {
|