refactor: parameter extraction and organization in agent services, minimize redundancy of shared fields across objects, make clear distinction of parameters processed uniquely by LibreChat vs LLM Provider Configs

This commit is contained in:
Danny Avila 2025-06-21 14:31:54 -04:00
parent 6bc0bbeebb
commit 2797aff423
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
7 changed files with 257 additions and 21 deletions

View file

@ -61,6 +61,7 @@ const initializeClient = async ({ req, res, endpointOption }) => {
}
const primaryAgent = await endpointOption.agent;
delete endpointOption.agent;
if (!primaryAgent) {
throw new Error('Agent not found');
}