feat: Custom prompt words support filtering prompt words based on data sources. (#518)

This commit is contained in:
王嘉豪
2025-11-28 16:40:23 +08:00
committed by GitHub
parent c4b4ad1736
commit 69447ef343
2 changed files with 91 additions and 15 deletions
+1 -3
View File
@@ -2,9 +2,7 @@ import { request } from '@/utils/request'
export const promptApi = {
getList: (pageNum: any, pageSize: any, type: any, params: any) =>
request.get(`/system/custom_prompt/${type}/page/${pageNum}/${pageSize}`, {
params,
}),
request.get(`/system/custom_prompt/${type}/page/${pageNum}/${pageSize}${params}`),
updateEmbedded: (data: any) => request.put(`/system/custom_prompt`, data),
deleteEmbedded: (params: any) => request.delete('/system/custom_prompt', { data: params }),
getOne: (id: any) => request.get(`/system/custom_prompt/${id}`),