restore settings ui

This commit is contained in:
2026-05-30 18:28:31 -07:00
parent 4a2493c421
commit dda20955bb
2 changed files with 337 additions and 42 deletions

View File

@@ -307,7 +307,10 @@ export async function updateChatStar(chatId: string, starred: boolean) {
return data.chat;
}
export async function updateChatSettings(chatId: string, body: { additionalSystemPrompt?: string | null; enabledTools?: string[] }) {
export async function updateChatSettings(
chatId: string,
body: { title?: string; additionalSystemPrompt?: string | null; enabledTools?: string[] }
) {
const data = await api<{ chat: ChatSummary }>(`/v1/chats/${chatId}`, {
method: "PATCH",
body: JSON.stringify(body),