mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 03:40:14 +01:00
Add support for deleting individual presets
This commit is contained in:
parent
fbeff7a461
commit
48e33fe1e9
6 changed files with 39 additions and 39 deletions
|
|
@ -41,8 +41,8 @@ export function updatePreset(payload: t.TPreset): Promise<t.TPreset[]> {
|
|||
return request.post(endpoints.presets(), payload);
|
||||
}
|
||||
|
||||
export function deletePresets(): Promise<unknown> {
|
||||
return request.post(endpoints.deletePresets(), {arg: {}});
|
||||
export function deletePreset(arg: t.TPreset | {}): Promise<t.TPreset[]> {
|
||||
return request.post(endpoints.deletePreset(), arg);
|
||||
}
|
||||
|
||||
export function getSearchEnabled(): Promise<boolean> {
|
||||
|
|
@ -59,4 +59,4 @@ export const searchConversations = async(q: string, pageNumber: string): Promise
|
|||
|
||||
export const getAIEndpoints = () => {
|
||||
return request.get(endpoints.aiEndpoints());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue