mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-15 23:43:06 +03:00
`config/set-balance.js` calls `getBalanceConfig()` without an argument, so it cannot read the parsed `balance` section from librechat.yaml. As a result the script always errors with "Balance is not enabled. Use librechat.yaml to enable it" — even when balance is enabled. `config/add-balance.js` already follows the correct pattern (fetch `appConfig` via `getAppConfig()` and pass it into `getBalanceConfig`), introduced in #9234. This applies the same pattern to set-balance.js. Co-authored-by: Odrec <Odrec@users.noreply.github.com>