hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client, normalizePage, pageQuery, type Page, type PageParams } from "../client"; |
| 2 | import type { RagThread } from "../client"; |
| 3 | |
| 4 | /** Sorted by `updated_at`, so the thread just written to is always first. */ |
| 5 | export async function getRagThreads(params?: PageParams, signal?: AbortSignal): Promise<Page<RagThread>> { |
| 6 | return normalizePage<RagThread>(await client<unknown>(`/rag/threads${pageQuery(params)}`, { signal })); |
| 7 | } |