forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

chatbotStreamUrl.ts7 lines, 361 bytesHistoryRawDownload
1/**
2 * The SSE URL for one pending turn: `delta` chunks, then one `done` or
3 * `error`. Not a request — hand it to an `EventSource` (`withCredentials: true`).
4 */
5export function chatbotStreamUrl(threadId: string, messageId: string): string {
6 return `/api/chatbot/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}/stream`;
7}