mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 08:20:14 +01:00
* 🧹 chore: Update logger imports to use @librechat/data-schemas across multiple files and remove unused sleep function from queue.js (#9930) * chore: Replace local isEnabled utility with @librechat/api import across multiple files, update test files * chore: Replace local logger import with @librechat/data-schemas logger in countTokens.js and fork.js * chore: Update logs volume path in docker-compose.yml to correct directory * chore: import order of isEnabled in static.js
57 lines
1 KiB
JavaScript
57 lines
1 KiB
JavaScript
const { logger } = require('@librechat/data-schemas');
|
|
|
|
const options = [
|
|
{
|
|
label: 'com_ui_idea',
|
|
value: 'idea',
|
|
},
|
|
{
|
|
label: 'com_ui_travel',
|
|
value: 'travel',
|
|
},
|
|
{
|
|
label: 'com_ui_teach_or_explain',
|
|
value: 'teach_or_explain',
|
|
},
|
|
{
|
|
label: 'com_ui_write',
|
|
value: 'write',
|
|
},
|
|
{
|
|
label: 'com_ui_shop',
|
|
value: 'shop',
|
|
},
|
|
{
|
|
label: 'com_ui_code',
|
|
value: 'code',
|
|
},
|
|
{
|
|
label: 'com_ui_misc',
|
|
value: 'misc',
|
|
},
|
|
{
|
|
label: 'com_ui_roleplay',
|
|
value: 'roleplay',
|
|
},
|
|
{
|
|
label: 'com_ui_finance',
|
|
value: 'finance',
|
|
},
|
|
];
|
|
|
|
module.exports = {
|
|
/**
|
|
* Retrieves the categories asynchronously.
|
|
* @returns {Promise<TGetCategoriesResponse>} An array of category objects.
|
|
* @throws {Error} If there is an error retrieving the categories.
|
|
*/
|
|
getCategories: async () => {
|
|
try {
|
|
// const categories = await Categories.find();
|
|
return options;
|
|
} catch (error) {
|
|
logger.error('Error getting categories', error);
|
|
return [];
|
|
}
|
|
},
|
|
};
|