🤖 fix: Azure Agents after Upstream Breaking Change (#5571)

* 🤖 fix: Azure Agents after Upstream Breaking Change

* chore: bump @langchain/core & @librechat/agents

* fix: correct formatting in assistant actions update logic and use correctly filtered actions variable

* fix: linting errors
This commit is contained in:
Danny Avila 2025-01-31 09:50:49 -05:00 committed by GitHub
parent e1a6268904
commit 6920e23fb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 48 additions and 471 deletions

View file

@ -1,6 +1,5 @@
const path = require('path');
require('module-alias')({ base: path.resolve(__dirname, '..', 'api') });
const { askQuestion, silentExit } = require('./helpers');
const connect = require('./connect');
const User = require('../api/models/User');
@ -8,10 +7,10 @@ const listUsers = async () => {
try {
await connect();
const users = await User.find({}, 'email provider avatar username name createdAt');
console.log('\nUser List:');
console.log('----------------------------------------');
users.forEach(user => {
users.forEach((user) => {
console.log(`Email: ${user.email}`);
console.log(`Username: ${user.username || 'N/A'}`);
console.log(`Name: ${user.name || 'N/A'}`);
@ -19,7 +18,7 @@ const listUsers = async () => {
console.log(`Created: ${user.createdAt}`);
console.log('----------------------------------------');
});
console.log(`\nTotal Users: ${users.length}`);
process.exit(0);
} catch (err) {
@ -28,4 +27,4 @@ const listUsers = async () => {
}
};
listUsers();
listUsers();