hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { RagThread } from "../client"; |
| 3 | |
| 4 | /** `null` — or blank — clears the title back to untitled. */ |
| 5 | export 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 | } |