mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 19:00:13 +01:00
✨ feat: Add user prompt preferences and favorites functionality
This commit is contained in:
parent
f2f4bf87ca
commit
0e26df0390
16 changed files with 788 additions and 54 deletions
|
|
@ -250,6 +250,13 @@ export const getCategories = () => '/api/categories';
|
|||
|
||||
export const getAllPromptGroups = () => `${prompts()}/all`;
|
||||
|
||||
/* Prompt Favorites and Rankings */
|
||||
export const togglePromptFavorite = (groupId: string) => `${prompts()}/favorites/${groupId}`;
|
||||
|
||||
export const updatePromptRankings = () => `${prompts()}/rankings`;
|
||||
|
||||
export const getUserPromptPreferences = () => `${prompts()}/preferences`;
|
||||
|
||||
/* Roles */
|
||||
export const roles = () => '/api/roles';
|
||||
export const getRole = (roleName: string) => `${roles()}/${roleName.toLowerCase()}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue