forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

getRagThreads.ts7 lines, 428 bytesHistoryRawDownload
1import { client, normalizePage, pageQuery, type Page, type PageParams } from "../client";
2import type { RagThread } from "../client";
3
4/** Sorted by `updated_at`, so the thread just written to is always first. */
5export async function getRagThreads(params?: PageParams, signal?: AbortSignal): Promise<Page<RagThread>> {
6 return normalizePage<RagThread>(await client<unknown>(`/rag/threads${pageQuery(params)}`, { signal }));
7}