@cortexkit/pi-anthropic-auth 2.4.4 → 2.4.5

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/stream.js +3 -0
  2. package/package.json +2 -2
package/dist/stream.js CHANGED
@@ -1065,6 +1065,9 @@ async function executeWithFallback(options) {
1065
1065
  const decision = decideStickyQuotaFailure({
1066
1066
  quota,
1067
1067
  modelId: options.model.id,
1068
+ responseHeaders: preflight instanceof Response
1069
+ ? preflight.headers
1070
+ : response.headers,
1068
1071
  });
1069
1072
  if (decision.action === 'hold') {
1070
1073
  const headers = new Headers(preflight instanceof Response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/pi-anthropic-auth",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "prepublishOnly": "bun run build"
37
37
  },
38
38
  "dependencies": {
39
- "@cortexkit/anthropic-auth-core": "2.4.4"
39
+ "@cortexkit/anthropic-auth-core": "2.4.5"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@earendil-works/pi-ai": ">=0.86.1 <2",