Files
deer-flow/frontend/src/core/artifacts/utils.ts

12 lines
264 B
TypeScript
Raw Normal View History

2026-01-17 15:09:44 +08:00
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" : ""}`;
}