This commit is contained in:
Zacharias-Brohn
2026-01-14 23:20:21 +01:00
parent b0fd4ff1ae
commit 0ea5048c19
2 changed files with 13 additions and 8 deletions
+1 -2
View File
@@ -449,7 +449,7 @@ export default function ChatLayout() {
// Generate a title for new chats using the model
let chatTitle = `${userMessage.content.slice(0, 30)}...`; // Fallback title
if (isNewChat && selectedModel) {
if (isNewChat) {
try {
// Build conversation context (excluding the initial greeting)
const conversationForTitle = [...newMessages, responseMessage]
@@ -460,7 +460,6 @@ export default function ChatLayout() {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
model: selectedModel,
messages: conversationForTitle,
}),
});