Skip to content

Commit 692c33f

Browse files
Roman Snapkogreptile-apps[bot]
andauthored
Update packages/server/api/src/app/ai/chat/ai-chat.service.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 7485ab3 commit 692c33f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/server/api/src/app/ai/chat/ai-chat.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export async function generateChatName(
113113
const sanitizedMessages: ModelMessage[] =
114114
sanitizeMessagesForChatName(messages);
115115

116-
if (isEmpty(sanitizedMessages.length)) {
116+
if (isEmpty(sanitizedMessages)) {
117117
return { name: null, isGenerated: false };
118118
}
119119

0 commit comments

Comments
 (0)