mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 20:34:45 +08:00
feat: support artifact preview
This commit is contained in:
11
frontend/src/core/artifacts/utils.ts
Normal file
11
frontend/src/core/artifacts/utils.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export function urlOfArtifact({
|
||||
filepath,
|
||||
threadId,
|
||||
download = false,
|
||||
}: {
|
||||
filepath: string;
|
||||
threadId: string;
|
||||
download?: boolean;
|
||||
}) {
|
||||
return `http://localhost:8000/api/threads/${threadId}/artifacts${filepath}${download ? "?download=true" : ""}`;
|
||||
}
|
||||
Reference in New Issue
Block a user