@acarmisc/backstage-plugin-litellm-backend 0.17.0 → 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.
- package/dist/bridge.d.ts +11 -0
- package/dist/bridge.js +40 -7
- package/dist/client.d.ts +6 -0
- package/dist/client.js +50 -0
- package/dist/index.cjs.js +119 -56
- package/dist/index.cjs.js.map +3 -3
- package/dist/routes/bridge.js +7 -0
- package/package.json +1 -1
package/dist/routes/bridge.js
CHANGED
|
@@ -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 ──────────────────────────────────
|