hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { RagMessage } from "../client"; |
| 3 | |
| 4 | /** Poll this while a turn is `pending`, or open its stream instead. */ |
| 5 | export function getRagMessageById(threadId: string, messageId: string, signal?: AbortSignal): Promise<RagMessage> { |
| 6 | const url = `/rag/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}`; |
| 7 | return client<RagMessage>(url, { signal }); |
| 8 | } |