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.
- package/package.json +1 -1
- package/src/server.js +7 -1
package/package.json
CHANGED
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
|
-
|
|
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
|
|