mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-04 22:02:16 +02:00
feat: link artifacts to source chat
This commit is contained in:
parent
9c622ae3f3
commit
8b0a2f8964
10 changed files with 44 additions and 7 deletions
|
|
@ -39,6 +39,7 @@ async function fetchLibraryArtifacts(searchSpaceId: number): Promise<LibraryArti
|
|||
status: report.report_metadata?.status === "failed" ? "error" : "ready",
|
||||
createdAt: report.created_at,
|
||||
contentType: isResume ? "typst" : "markdown",
|
||||
sourceThreadId: report.thread_id,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -51,6 +52,7 @@ async function fetchLibraryArtifacts(searchSpaceId: number): Promise<LibraryArti
|
|||
status: podcastStatus(podcast.status),
|
||||
createdAt: podcast.created_at,
|
||||
contentType: "markdown",
|
||||
sourceThreadId: podcast.thread_id,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -63,6 +65,7 @@ async function fetchLibraryArtifacts(searchSpaceId: number): Promise<LibraryArti
|
|||
status: videoStatus(video.status),
|
||||
createdAt: video.created_at,
|
||||
contentType: "markdown",
|
||||
sourceThreadId: video.thread_id,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue