Refactor: migrate doc upload info used in chat (#14359)

### What problem does this PR solve?

Before migration: POST /v1/document/upload_info/
After migration: POST /api/v1/documentss/upload/

### Type of change

- [x] Refactoring
This commit is contained in:
Jack
2026-04-27 16:58:42 +08:00
committed by GitHub
parent c446c403de
commit 61a24a2c14
7 changed files with 165 additions and 116 deletions

View File

@@ -130,7 +130,7 @@ export default {
`${restAPIv1}/datasets/${datasetId}/documents`,
webCrawl: (datasetId: string) =>
`${restAPIv1}/datasets/${datasetId}/documents?type=web`,
uploadAndParse: `${webAPI}/document/upload_info`,
documentInfoUpload: `${restAPIv1}/documents/upload`,
setMeta: `${webAPI}/document/set_meta`,
getDatasetFilter: (datasetId: string) =>
`${restAPIv1}/datasets/${datasetId}/documents?type=filter`,