mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 17:26:55 +08:00
feat: Custom prompt words support filtering prompt words based on data sources. (#518)
This commit is contained in:
@@ -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}`),
|
||||
|
||||
Reference in New Issue
Block a user