LibreChat/api/server/controllers/agents
Danny Avila a8c30624fa
refactor(agents): remove unused tokenCountMap and streamline calibration ratio handling
Eliminated the unused tokenCountMap variable from the AgentClient class to enhance code clarity. Additionally, streamlined the logic for capturing the calibration ratio by using optional chaining and a fallback value, ensuring that context metadata is consistently defined. This change improves maintainability and reduces potential confusion in the codebase.
2026-03-11 22:35:52 -04:00
..
__tests__ refactor(tests): simplify event handler setup in createResponse tests 2026-03-11 21:48:07 -04:00
callbacks.js chore: update logging scope in agent log handlers 2026-03-11 20:05:03 -04:00
client.js refactor(agents): remove unused tokenCountMap and streamline calibration ratio handling 2026-03-11 22:35:52 -04:00
client.test.js chore: imports/types 2026-03-10 23:25:44 -04:00
errors.js 📦 refactor: Consolidate DB models, encapsulating Mongoose usage in data-schemas (#11830) 2026-03-10 23:15:53 -04:00
openai.js chore: imports/types 2026-03-10 23:25:44 -04:00
recordCollectedUsage.spec.js 🪢 chore: Consolidate Pricing and Tx Imports After tx.js Module Removal (#12086) 2026-03-10 23:15:53 -04:00
request.js 📦 refactor: Consolidate DB models, encapsulating Mongoose usage in data-schemas (#11830) 2026-03-10 23:15:53 -04:00
responses.js chore: update logging scope in agent log handlers 2026-03-11 20:05:03 -04:00
v1.js 🗂️ refactor: Migrate S3 Storage to TypeScript in packages/api (#11947) 2026-03-10 23:16:27 -04:00
v1.spec.js 🗂️ refactor: Migrate S3 Storage to TypeScript in packages/api (#11947) 2026-03-10 23:16:27 -04:00