Refactor: migrate artifact API (#14348)

### What problem does this PR solve?

Before migration: GET /v1/document/artifact/<filename>
After migration:  GET /api/v1/documents/artifact/<filename>

### Type of change

- [x] Refactoring
This commit is contained in:
Jack
2026-04-27 15:19:41 +08:00
committed by GitHub
parent 2846a93998
commit 290f0294d6
4 changed files with 69 additions and 43 deletions

View File

@@ -46,7 +46,7 @@ import styles from './index.module.less';
const getChunkIndex = (match: string) => parseCitationIndex(match);
const isArtifactUrl = (url?: string) =>
Boolean(url && url.includes('/document/artifact/'));
Boolean(url && url.includes('/api/v1/documents/artifact/'));
const fetchArtifactBlob = async (url: string): Promise<Blob> => {
const response = await request(url, {