diff --git a/__LOCAL_LLMs/dashboard/src/app/(workspace)/components/ConversationView.tsx b/__LOCAL_LLMs/dashboard/src/app/(workspace)/components/ConversationView.tsx index 58a25ffb..c423431e 100644 --- a/__LOCAL_LLMs/dashboard/src/app/(workspace)/components/ConversationView.tsx +++ b/__LOCAL_LLMs/dashboard/src/app/(workspace)/components/ConversationView.tsx @@ -88,14 +88,14 @@ export function ConversationView({ if (next && onConversationUpdated) onConversationUpdated(next); }; - const maybeAutoTitle = async (firstUserMessage: string) => { + const maybeAutoTitle = async (firstUserMessage: string, model: string) => { if (title !== 'New Conversation' || !firstUserMessage.trim()) return; try { const res = await fetch('/api/ollama/title', { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ message: firstUserMessage, model: selectedModel }), + body: JSON.stringify({ message: firstUserMessage, model }), }); const data = (await res.json()) as { title?: string }; const nextTitle = (data.title || 'New Conversation').trim(); @@ -244,7 +244,7 @@ export function ConversationView({ const userCount = nextMessages.filter(m => m.role === 'user').length; if (userCount === 1) { - await maybeAutoTitle(text); + await maybeAutoTitle(text, routedModel); } } catch (err) { if (!controller.signal.aborted) {