mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
* feat: CONFIG_VERSION v1.1.9, agents config * refactor: Assistants Code Interpreter Toggle Improved Accessibility * feat: Agents Config
14 lines
545 B
JavaScript
14 lines
545 B
JavaScript
const { EModelEndpoint, agentsEndpointSChema } = require('librechat-data-provider');
|
|
|
|
/**
|
|
* Sets up the Agents configuration from the config (`librechat.yaml`) file.
|
|
* @param {TCustomConfig} config - The loaded custom configuration.
|
|
* @returns {Partial<TAgentsEndpoint>} The Agents endpoint configuration.
|
|
*/
|
|
function agentsConfigSetup(config) {
|
|
const agentsConfig = config.endpoints[EModelEndpoint.agents];
|
|
const parsedConfig = agentsEndpointSChema.parse(agentsConfig);
|
|
return parsedConfig;
|
|
}
|
|
|
|
module.exports = { agentsConfigSetup };
|