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 { RagMessage } from "../client"; |
| 3 | |
| 4 | export async function getRagThreadMessages( |
| 5 | threadId: string, |
| 6 | params?: PageParams, |
| 7 | signal?: AbortSignal, |
| 8 | ): Promise<Page<RagMessage>> { |
| 9 | const url = `/rag/threads/${encodeURIComponent(threadId)}/messages${pageQuery(params)}`; |
| 10 | return normalizePage<RagMessage>(await client<unknown>(url, { signal })); |
| 11 | } |