forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

ragStreamUrl.ts7 lines, 341 bytesHistoryRawDownload
1/**
2 * The SSE URL for one pending turn. Not a request — hand it to an
3 * `EventSource` (`withCredentials: true`), the way the çelebi panel does.
4 */
5export function ragStreamUrl(threadId: string, messageId: string): string {
6 return `/api/rag/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}/stream`;
7}