mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-11 13:08:51 +01:00
✨ feat: Refactor Token Rates Configuration and Introduce Custom Overrides
This commit is contained in:
parent
7dfb386f5a
commit
262e6aa4c9
4 changed files with 106 additions and 36 deletions
|
|
@ -25,10 +25,7 @@ const AppService = async (app) => {
|
|||
/** @type {TCustomConfig} */
|
||||
const config = (await loadCustomConfig()) ?? {};
|
||||
const configDefaults = getConfigDefaults();
|
||||
const tokenRatesConfig = loadTokenRatesConfig(config, configDefaults);
|
||||
//
|
||||
// // Set the global token rates configuration so that it can be used by the tx.js functions.
|
||||
// setTokenRatesConfig(tokenRatesConfig);
|
||||
loadTokenRatesConfig(config, configDefaults);
|
||||
|
||||
const filteredTools = config.filteredTools;
|
||||
const includedTools = config.includedTools;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue