mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00

* chore: update @librechat/agents to version 2.1.9
* feat: xAI standalone provider for agents
* chore: bump librechat-data-provider version to 0.7.6997
* fix: reorder import statements and enhance user listing output
* fix: Update Docker Compose commands to support v2 syntax with fallback
* 🔧 fix: drop `reasoning_effort` for o1-preview/mini models
* chore: requireLocalAuth logging
* fix: edge case artifact message editing logic to handle `new` conversation IDs
* fix: remove `temperature` from model options in OpenAIClient if o1-mini/preview
* fix: update type annotation for fetchPromisesMap to use Promise<string[]> instead of string[]
* feat: anthropic model fetching
* fix: update model name to use EModelEndpoint.openAI in fetchModels and fetchOpenAIModels
* fix: add error handling to modelController for loadModels
* fix: add error handling and logging for model fetching in loadDefaultModels
* ci: update getAnthropicModels tests to be asynchronous
* feat: add user ID to model options in OpenAI and custom endpoint initialization
---------
Co-authored-by: Andrei Berceanu <andreicberceanu@gmail.com>
Co-authored-by: KiGamji <maloyh44@gmail.com>
31 lines
1,021 B
JavaScript
31 lines
1,021 B
JavaScript
const path = require('path');
|
|
require('module-alias')({ base: path.resolve(__dirname, '..', 'api') });
|
|
const User = require('../api/models/User');
|
|
const connect = require('./connect');
|
|
|
|
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) => {
|
|
console.log(`ID: ${user._id.toString()}`);
|
|
console.log(`Email: ${user.email}`);
|
|
console.log(`Username: ${user.username || 'N/A'}`);
|
|
console.log(`Name: ${user.name || 'N/A'}`);
|
|
console.log(`Provider: ${user.provider || 'email'}`);
|
|
console.log(`Created: ${user.createdAt}`);
|
|
console.log('----------------------------------------');
|
|
});
|
|
|
|
console.log(`\nTotal Users: ${users.length}`);
|
|
process.exit(0);
|
|
} catch (err) {
|
|
console.error('Error listing users:', err);
|
|
process.exit(1);
|
|
}
|
|
};
|
|
|
|
listUsers();
|