forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchRagThreadById.ts10 lines, 371 bytesHistoryRawDownload
1import { client } from "../client";
2import type { RagThread } from "../client";
3
4/** `null` — or blank — clears the title back to untitled. */
5export function patchRagThreadById(threadId: string, title: string | null): Promise<RagThread> {
6 return client<RagThread>(`/rag/threads/${encodeURIComponent(threadId)}`, {
7 method: "PATCH",
8 body: { title },
9 });
10}