LLM.js 451 B

12345678910111213141516
  1. import { get, postFile, post } from '@/http/index'
  2. // 获取知识库内文件列表
  3. export const uploadDocs = async (data) => {
  4. return await postFile('/knowledge_base/upload_docs', data)
  5. }
  6. // 获取知识库内文件列表
  7. export const getListFiles = async (data) => {
  8. return await get('/knowledge_base/list_files', data)
  9. }
  10. // 删除文件
  11. export const deleteDocs = async (data) => {
  12. return await post('/knowledge_base/delete_docs', data)
  13. }