maxpool 1.5.76 → 1.5.77

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/package.json +1 -1
  2. package/src/server.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maxpool",
3
- "version": "1.5.76",
3
+ "version": "1.5.77",
4
4
  "description": "Multi-account Claude Code proxy with adaptive, rate-aware load balancing across Claude accounts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/server.js CHANGED
@@ -2587,7 +2587,13 @@ function containsImageBlock(value) {
2587
2587
 
2588
2588
  function getMaxpoolProfile(headers) {
2589
2589
  // headerValue() handles the x-teamclaude-* legacy fallback.
2590
- const profile = String(headerValue(headers, 'x-maxpool-profile') || 'claude').trim().toLowerCase();
2590
+ // A request with NO x-maxpool-profile header is a bare `claude` session that
2591
+ // inherited ANTHROPIC_BASE_URL from a parent cc shell (measured 2026-08-10: 41% of
2592
+ // traffic). Defaulting those to 'claude' (Anthropic-only) silently excluded
2593
+ // providers from 7,489 requests that should have been able to use them. Configurable
2594
+ // so a setup that wants bare claude to be Anthropic-only can set it back.
2595
+ const fallback = String(headers?.['x-maxpool-default-profile'] || '').trim().toLowerCase();
2596
+ const profile = String(headerValue(headers, 'x-maxpool-profile') || fallback || 'claude').trim().toLowerCase();
2591
2597
  return profile || 'claude';
2592
2598
  }
2593
2599