Skip to content

Commit 3e2d08d

Browse files
authored
🐛 Fixed the issue where no title was generated when uploading images or files in conversations.
2 parents 454fa73 + 55d26c7 commit 3e2d08d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/app/[locale]/chat/streaming/chatStreamHandler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ export const handleStreamResponse = async (
651651
}
652652

653653
// If it is the first answer of a new conversation, generate a title
654-
if (isNewConversation && newMessages.length === 2) {
654+
if (isNewConversation && newMessages.length >= 2) {
655655
// Use setTimeout to ensure the state has been updated
656656
setTimeout(async () => {
657657
try {

0 commit comments

Comments
 (0)