mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-30 13:58:22 +00:00
12 lines
264 B
TypeScript
12 lines
264 B
TypeScript
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" : ""}`;
|
|
}
|