@acarmisc/backstage-plugin-litellm-backend 0.17.1 → 0.17.2

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.
@@ -91,6 +91,13 @@ function registerBridgeRoutes(router, ctx, bridgeOpts) {
91
91
  return;
92
92
  }
93
93
  const input = parseResult.data;
94
+ // CLI clients don't know the budget policy. When unlimited budgets are
95
+ // not allowed and the caller sent no max_budget, fall back to the
96
+ // provisioning default instead of rejecting the mint. An explicit
97
+ // value (including null) is left alone and validated as usual.
98
+ if (!allowUnlimitedBudget && input.max_budget === undefined) {
99
+ input.max_budget = provisioningDefaults.maxBudget;
100
+ }
94
101
  // ── Resolve user identity from verified claims ───────────────────────
95
102
  const userId = (0, bridge_1.resolveBridgeUserId)(claims, bridgeIdentity);
96
103
  // ── Create key via unified service ──────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acarmisc/backstage-plugin-litellm-backend",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "The Backstage backend plugin for LiteLLM governance",
5
5
  "backstage": {
6
6
  "role": "backend-plugin",