diff --git a/frontend/src/api/chat/index.ts b/frontend/src/api/chat/index.ts index ff5b1c8d..6c2e57e6 100644 --- a/frontend/src/api/chat/index.ts +++ b/frontend/src/api/chat/index.ts @@ -26,6 +26,10 @@ export async function generateSessionsTitle(session_id: string, data: any) { return post(`/api/v1/sessions/${session_id}/generate_title`, data); } +export async function updateSession(session_id: string, data: { title: string; description?: string }) { + return put(`/api/v1/sessions/${session_id}`, data); +} + export async function knowledgeChat(data: { session_id: string; query: string; }) { return postChat(`/api/v1/knowledge-chat/${data.session_id}`, { query: data.query, channel: "web" }); } @@ -75,4 +79,4 @@ export async function stopSession(session_id: string, message_id: string) { export async function clearSessionMessages(session_id: string) { return del(`/api/v1/sessions/${session_id}/messages`); -} \ No newline at end of file +} diff --git a/frontend/src/components/SessionSidebarRow.vue b/frontend/src/components/SessionSidebarRow.vue index 8f534693..4a199cbc 100644 --- a/frontend/src/components/SessionSidebarRow.vue +++ b/frontend/src/components/SessionSidebarRow.vue @@ -17,7 +17,22 @@ @click.stop @change="emit('toggle-select')" /> - +
+ +
+ {{ item.title }} @@ -64,6 +79,7 @@